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

Always use CPU usage information if available. #4821

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mstange
Copy link
Contributor

@mstange mstange commented Nov 29, 2023

We can use ?timelineType=category in the URL in order to pick the CPU-unaware activity graph even for profiles which include CPU usage information. This causes us to draw the graph as if CPU usage was 100% all the time.

I think this ability to switch between CPU activity graph and no-CPU activity graph is no longer useful. It is time to simplify some code.

@canova Thoughts?

Example profiles (all links go to current production):

  1. Old profile without CPU usage information: timelineType=category | timelineType=category-cpu
  2. Profile with CPU usage information: timelineType=category | timelineType=category-cpu
  3. Old profile without CPU usage information with categories, but with timelineType=stack

We can make some simplifications to determineTimelineType as a result. I'll keep this PR as a draft until I've looked at those in more detail. We may also want a URL upgrader, but I'm not sure if that's valuable.

┆Issue is synchronized with this Jira Task

In the past you could use the timelineType parameter to turn this off
(and draw the graph as if CPU usage was 100% all the time) but this
capability is no longer useful.
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7e2bb74) 88.28% compared to head (8ec5be6) 88.28%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4821      +/-   ##
==========================================
- Coverage   88.28%   88.28%   -0.01%     
==========================================
  Files         301      301              
  Lines       26921    26920       -1     
  Branches     7276     7274       -2     
==========================================
- Hits        23767    23766       -1     
  Misses       2936     2936              
  Partials      218      218              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant