Commit 271cf66
committed
ref(time): Collapse the clocks into a single MonotonicClock (JAVA-571)
Two interfaces existed so that a call site could name which suspend
behaviour it needed, but only ANR detection wanted the one that excludes
deep sleep, and neither ANR path can be fooled by a suspend: ANRWatchDog
reports only once ActivityManager confirms NOT_RESPONDING, and
AnrProfilingIntegration parks its thread while backgrounded and resets
its baseline on wake.
That leaves one guarantee worth naming. Ticker, UptimeClock and
JavaUptimeClock are gone, and ElapsedRealtimeClock becomes
MonotonicClock, backed by elapsedRealtimeNanos() on Android and
nanoTime() on the JVM.1 parent 5c664f3 commit 271cf66
17 files changed
Lines changed: 80 additions & 153 deletions
File tree
- sentry-android-core
- api
- src/main/java/io/sentry/android/core
- internal/time
- sentry-test-support/src/main/kotlin/io/sentry/time
- sentry
- api
- src
- main/java/io/sentry
- time
- test/java/io/sentry/time
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | 416 | | |
| 417 | + | |
418 | 418 | | |
419 | 419 | | |
420 | 420 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
896 | | - | |
897 | | - | |
| 896 | + | |
| 897 | + | |
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 11 | | |
16 | | - | |
| 12 | + | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3704 | 3704 | | |
3705 | 3705 | | |
3706 | 3706 | | |
3707 | | - | |
3708 | 3707 | | |
3709 | 3708 | | |
3710 | 3709 | | |
| |||
3741 | 3740 | | |
3742 | 3741 | | |
3743 | 3742 | | |
| 3743 | + | |
3744 | 3744 | | |
3745 | 3745 | | |
3746 | 3746 | | |
| |||
7599 | 7599 | | |
7600 | 7600 | | |
7601 | 7601 | | |
7602 | | - | |
| 7602 | + | |
7603 | 7603 | | |
7604 | 7604 | | |
7605 | | - | |
| 7605 | + | |
7606 | 7606 | | |
7607 | 7607 | | |
7608 | 7608 | | |
7609 | | - | |
7610 | | - | |
7611 | | - | |
7612 | | - | |
7613 | | - | |
| 7609 | + | |
| 7610 | + | |
7614 | 7611 | | |
7615 | 7612 | | |
7616 | 7613 | | |
7617 | | - | |
7618 | | - | |
7619 | | - | |
| 7614 | + | |
| 7615 | + | |
7620 | 7616 | | |
7621 | 7617 | | |
7622 | 7618 | | |
7623 | 7619 | | |
7624 | 7620 | | |
7625 | | - | |
7626 | | - | |
7627 | | - | |
7628 | | - | |
7629 | | - | |
7630 | | - | |
7631 | | - | |
7632 | | - | |
| 7621 | + | |
7633 | 7622 | | |
7634 | 7623 | | |
7635 | 7624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
3062 | 3062 | | |
3063 | 3063 | | |
3064 | 3064 | | |
3065 | | - | |
3066 | | - | |
| 3065 | + | |
| 3066 | + | |
3067 | 3067 | | |
3068 | 3068 | | |
3069 | 3069 | | |
3070 | 3070 | | |
3071 | 3071 | | |
3072 | | - | |
3073 | | - | |
| 3072 | + | |
| 3073 | + | |
3074 | 3074 | | |
3075 | 3075 | | |
3076 | 3076 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 0 additions & 28 deletions
This file was deleted.
0 commit comments