Skip to content
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

Merged
merged 3 commits into from
Oct 8, 2021

Conversation

ivoanjo
Copy link
Member

@ivoanjo ivoanjo commented Oct 6, 2021

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.

Screen Shot 2021-10-05 at 17 55 29

…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.
@ivoanjo ivoanjo requested a review from a team October 6, 2021 08:37
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2021

Codecov Report

Merging #1709 (ca4b897) into master (735404e) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1709   +/-   ##
=======================================
  Coverage   98.18%   98.19%           
=======================================
  Files         934      934           
  Lines       45046    45067   +21     
=======================================
+ Hits        44230    44253   +23     
+ Misses        816      814    -2     
Impacted Files Coverage Δ
lib/ddtrace/profiling/encoding/profile.rb 95.65% <100.00%> (ø)
lib/ddtrace/profiling/pprof/builder.rb 100.00% <100.00%> (ø)
lib/ddtrace/profiling/pprof/template.rb 94.73% <100.00%> (ø)
lib/ddtrace/utils/time.rb 100.00% <100.00%> (ø)
spec/ddtrace/profiling/encoding/profile_spec.rb 100.00% <100.00%> (ø)
spec/ddtrace/profiling/integration_spec.rb 95.06% <100.00%> (+0.15%) ⬆️
spec/ddtrace/profiling/pprof/builder_spec.rb 100.00% <100.00%> (ø)
spec/ddtrace/profiling/pprof/template_spec.rb 100.00% <100.00%> (ø)
spec/ddtrace/utils/time_spec.rb 100.00% <100.00%> (ø)
lib/datadog/ci/ext/environment.rb 99.39% <0.00%> (+0.54%) ⬆️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 735404e...ca4b897. Read the comment docs.

string_table: @string_table.strings
string_table: @string_table.strings,
time_nanos: start_ns,
duration_nanos: finish_ns - start_ns,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That trailing comma Screen Shot 2021-10-06 at 12 53 44 PM

Copy link
Member Author

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!!!!!!!!!"

lib/ddtrace/utils/time.rb Outdated Show resolved Hide resolved
@ivoanjo ivoanjo merged commit e08fc02 into master Oct 8, 2021
@ivoanjo ivoanjo deleted the ivoanjo/prof-4084-send-duration-nanos branch October 8, 2021 08:16
@github-actions github-actions bot added this to the 0.54.0 milestone Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants