-
-
Notifications
You must be signed in to change notification settings - Fork 266
feat: profiling for iOS/macOS #1611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
696ba61
todo
vaind 4f85144
feat: expose cocoa profiling via method channels
vaind de6f244
feat: prepare profiler interfaces and hub integration
vaind 7c73348
fix CI
vaind 42af467
integrate dart & cocoa profiling
vaind 162c2ba
fix API breakage
vaind 31a92e5
fix tests
vaind b12978e
dart format
vaind 3582adf
ci: fix pana
vaind 1d74bac
update tests
vaind 8d23d3f
analysis issues
vaind c9be10c
update to the latest cocoa SDK API
vaind 32c6e5d
linter issue
vaind 0ae79d4
fix import
vaind df9fb5b
refactor: SentryNative integration
vaind 0fb649c
update cocoa native binding to use ffi startProfiler()
vaind dccb853
tmp: findPrimeNumber in example
vaind 6119812
fix: make FFI dependency conditional (web/vm)
vaind 5218efa
exclude generated binding code from code coverage
vaind 4c8f2bf
test: profiler integration test
vaind e0bb3ab
workaround for the integration test issue
vaind 8a4fed7
chore: formatting
vaind 2d29cb6
Merge branch 'main' into feat/profiling
vaind 4748a00
Merge branch 'main' into feat/profiling
vaind 39d1187
chore: remove obsolete code
vaind 50994d4
Update flutter/example/lib/main.dart
vaind 6e599fb
renames
vaind e7582d7
Breadcrumbs for file I/O operations (#1649)
denrase 36b052e
ci: don't run CI on markdown updates (#1651)
vaind 813b947
fixup mock names after renames
vaind ce59509
Merge branch 'main' into feat/profiling
stefanosiano e13e7de
more renames (Sentry prefix)
vaind 8e6bd13
chore: update changelog
vaind 227b701
Merge branch 'main' into feat/profiling
vaind defdfa6
don't inline findPrimeNumber profiler-test function
vaind 4074f01
fixup changelog
vaind File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'dart:async'; | ||
|
||
import 'package:meta/meta.dart'; | ||
|
||
import '../sentry.dart'; | ||
|
||
@internal | ||
abstract class SentryProfilerFactory { | ||
SentryProfiler? startProfiler(SentryTransactionContext context); | ||
} | ||
|
||
@internal | ||
abstract class SentryProfiler { | ||
Future<SentryProfileInfo?> finishFor(SentryTransaction transaction); | ||
void dispose(); | ||
} | ||
|
||
// See https://develop.sentry.dev/sdk/profiles/ | ||
@internal | ||
abstract class SentryProfileInfo { | ||
SentryEnvelopeItem asEnvelopeItem(); | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -289,6 +289,17 @@ class SentryOptions { | |
/// to be sent to Sentry. | ||
TracesSamplerCallback? tracesSampler; | ||
|
||
double? _profilesSampleRate; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we have a profilesSampler option in the other SDKs, which, if set, is prioritized over profilesSampleRate |
||
|
||
@internal // Only exposed by SentryFlutterOptions at the moment. | ||
double? get profilesSampleRate => _profilesSampleRate; | ||
|
||
@internal // Only exposed by SentryFlutterOptions at the moment. | ||
set profilesSampleRate(double? value) { | ||
assert(value == null || (value >= 0 && value <= 1)); | ||
_profilesSampleRate = value; | ||
} | ||
|
||
/// Send statistics to sentry when the client drops events. | ||
bool sendClientReports = true; | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.