Commit 0b489c6
ref(profiling): Use the transaction timestamps to anchor the profile (#1898)
We want the profile to be as closely aligned with the transaction's timestamps
as possible to make aligning the two visualizations as accurate as possible.
Here we change the transaction's internal `_start_timestamp_monotonic` to
contain an unit for each of the possible clocks we use in the various python
versions. This allows us to use the `start_timestamp` of the transaction as the
timestamp of the profile, and we can use the `_start_timestamp_monontonic` as
the anchor for all the relative timestamps in the profile.
Co-authored-by: Neel Shah <neel.shah@sentry.io>1 parent bb20fc6 commit 0b489c6
3 files changed
+15
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
430 | 434 | | |
431 | 435 | | |
432 | 436 | | |
| |||
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
527 | | - | |
| 531 | + | |
| 532 | + | |
528 | 533 | | |
529 | 534 | | |
530 | 535 | | |
| |||
643 | 648 | | |
644 | 649 | | |
645 | 650 | | |
646 | | - | |
| 651 | + | |
647 | 652 | | |
648 | 653 | | |
649 | 654 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
87 | 86 | | |
88 | 87 | | |
89 | 88 | | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
150 | 147 | | |
151 | 148 | | |
152 | 149 | | |
| |||
483 | 480 | | |
484 | 481 | | |
485 | 482 | | |
486 | | - | |
| 483 | + | |
487 | 484 | | |
488 | | - | |
| 485 | + | |
489 | 486 | | |
490 | 487 | | |
491 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | | - | |
1177 | 1176 | | |
1178 | 1177 | | |
1179 | 1178 | | |
1180 | 1179 | | |
1181 | 1180 | | |
1182 | 1181 | | |
1183 | | - | |
1184 | 1182 | | |
0 commit comments