-
Notifications
You must be signed in to change notification settings - Fork 635
Heap flamegraph: sort roots by name to improve stability #3911
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
Open
lukaville
wants to merge
11
commits into
main
Choose a base branch
from
dev/nickchameyev/stable-shortest-path
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+411
−15
Open
Changes from 3 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
52914b7
Heap flamegraph: sort roots to improve stability
lukaville e4baa7c
Update heap graph flamegraph diff test output
lukaville cbc21b4
Merge branch 'main' into dev/nickchameyev/stable-shortest-path
lukaville 887555f
Update _heap_graph_object_min_depth_tree to use sorted roots
lukaville 02f3e72
Merge remote-tracking branch 'origin/main' into dev/nickchameyev/stab…
lukaville 3d6a2d0
Merge branch 'dev/nickchameyev/stable-shortest-path' of github.com:go…
lukaville 7e47627
Update heap graph tracker tests to cover more scenarios
lukaville d9d77c0
Simplify tests_heap_graph.py
lukaville 1de19fc
Use standard aggregate initialization
lukaville a519e3b
Format sources
lukaville 518c7ba
Add comment to class_tree.sql about root sorting
lukaville File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
..._processor/diff_tests/parser/profiling/heap_graph_flamegraph_system-server-heap-graph.out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| "id","depth","name","map_name","count","cumulative_count","size","cumulative_size","parent_id" | ||
| 0,0,"java.lang.Class<java.lang.Object[]> [ROOT_STICKY_CLASS]","JAVA",1,3,224,292,"[NULL]" | ||
| 1,1,"java.lang.Object[]","JAVA",1,1,28,28,0 | ||
| 2,1,"java.lang.String","JAVA",1,1,40,40,0 | ||
| 3,0,"java.lang.String [ROOT_INTERNED_STRING]","JAVA",41197,41197,1845640,1845640,"[NULL]" | ||
| 4,0,"java.lang.Class<android.content.pm.ApplicationInfo> [ROOT_STICKY_CLASS]","JAVA",1,5,1152,1268,"[NULL]" | ||
| 5,1,"java.lang.String","JAVA",1,1,56,56,4 | ||
| 6,1,"android.content.pm.ApplicationInfo$1","JAVA",1,1,8,8,4 | ||
| 7,1,"java.lang.Object[]","JAVA",1,2,20,52,4 | ||
| 8,2,"long[]","JAVA",1,1,32,32,7 | ||
| 9,0,"java.lang.Class<java.io.File> [ROOT_STICKY_CLASS]","JAVA",1,11,645,997,"[NULL]" | ||
| 0,0,"android.app.LoadedApk$ServiceDispatcher$DeathMonitor [ROOT_JNI_GLOBAL]","JAVA",32,789,640,54860,"[NULL]" | ||
| 1,1,"android.app.LoadedApk$ServiceDispatcher","JAVA",31,683,1395,51674,0 | ||
| 2,2,"android.app.ActivityThread$H","JAVA",1,1,32,32,1 | ||
| 3,2,"android.app.LoadedApk$ServiceDispatcher$InnerConnection","JAVA",31,62,868,1612,1 | ||
| 4,3,"java.lang.ref.WeakReference","JAVA",31,31,744,744,3 | ||
| 5,2,"android.util.ArrayMap","JAVA",31,125,775,3519,1 | ||
| 6,3,"java.lang.Object[]","JAVA",31,63,1364,1876,5 | ||
| 7,4,"android.app.LoadedApk$ServiceDispatcher$ConnectionInfo","JAVA",32,32,512,512,6 | ||
| 8,3,"int[]","JAVA",31,31,868,868,5 | ||
| 9,2,"android.app.ServiceConnectionLeaked","JAVA",31,145,868,22009,1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Hmm why did this change?
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.
This seems to be expected as this is the number of unique samples, so we might have different number of unique paths based on the order of roots:
E.g. let's say we have:
(both roots reference ChildShared, only RootB reference ChildB)