-
-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: prepare profiler interfaces and hub integration
- Loading branch information
Showing
12 changed files
with
305 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 ProfilerFactory { | ||
Profiler startProfiling(SentryTransactionContext context); | ||
} | ||
|
||
@internal | ||
abstract class Profiler { | ||
Future<ProfileInfo> finishFor(SentryTransaction transaction); | ||
void dispose(); | ||
} | ||
|
||
// See https://develop.sentry.dev/sdk/profiles/ | ||
@internal | ||
abstract class ProfileInfo { | ||
FutureOr<SentryEnvelopeItem> asEnvelopeItem(); | ||
} |
This file contains 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 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 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 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 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 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 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import 'package:mockito/annotations.dart'; | ||
import 'package:sentry/sentry.dart'; | ||
import 'package:sentry/src/profiling.dart'; | ||
import 'package:sentry/src/transport/rate_limiter.dart'; | ||
|
||
final fakeDsn = 'https://[email protected]/1234567'; | ||
|
@@ -149,3 +151,10 @@ class MockRateLimiter implements RateLimiter { | |
this.errorCode = errorCode; | ||
} | ||
} | ||
|
||
@GenerateMocks([ | ||
ProfilerFactory, | ||
Profiler, | ||
ProfileInfo, | ||
]) | ||
void main() {} |
Oops, something went wrong.