Skip to content

Commit

Permalink
Set kDefaultSampleRateInMilliseconds to 10ms
Browse files Browse the repository at this point in the history
  • Loading branch information
littleGnAl committed Sep 30, 2024
1 parent 1129af8 commit d8fb14e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions example/glance_integration_test/build_phase_jank_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ void main() {
await Glance.instance.start(
config: GlanceConfiguration(
reporters: [reporter],
jankThreshold: 5,
sampleRateInMilliseconds: 1,
),
);

Expand Down
1 change: 0 additions & 1 deletion example/glance_integration_test/touch_event_jank_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ void main() {
await Glance.instance.start(
config: GlanceConfiguration(
reporters: [reporter],
jankThreshold: 5,
),
);

Expand Down
2 changes: 1 addition & 1 deletion lib/src/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
const int kDefaultJankThreshold = 16;

/// The default sample rate for measuring performance in milliseconds.
const int kDefaultSampleRateInMilliseconds = 1;
const int kDefaultSampleRateInMilliseconds = 10;

/// Limits the maximum number of stack traces to 99. Any stack traces exceeding
/// `kMaxStackTraces` will be dropped.
Expand Down

0 comments on commit d8fb14e

Please sign in to comment.