-
Notifications
You must be signed in to change notification settings - Fork 375
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
[PROF-4084] Send profile duration and start in pprof to enable UX to show duration #1709
Conversation
…show duration By setting the `duration_nanos`, we enable the UX to show profile duration. Since we "were in the neighbourhood", I also set the `time_nanos` which corresponds to the profile start.
Codecov Report
@@ Coverage Diff @@
## master #1709 +/- ##
=======================================
Coverage 98.18% 98.19%
=======================================
Files 934 934
Lines 45046 45067 +21
=======================================
+ Hits 44230 44253 +23
+ Misses 816 814 -2
Continue to review full report at Codecov.
|
string_table: @string_table.strings | ||
string_table: @string_table.strings, | ||
time_nanos: start_ns, | ||
duration_nanos: finish_ns - start_ns, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahaha I remember Kotlin 1.4 adding a lot of great improvements and I was like "KOTLIN 1.4 HAS TRAILING COMMA I DON'T CARE ABOUT ANYTHING ELSE!!!!!!!!!"
By setting the
duration_nanos
, we enable the UX to show profile duration.Since we "were in the neighbourhood", I also set the
time_nanos
which corresponds to the profile start.