You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MemProf] Add option to emit full call context for matched allocations (#170516)
Add the -memprof-print-matched-alloc-stack option to enable emitting the
full allocation call context (of stack ids) for each matched allocation
reported by -memprof-print-match-info. Noop when the latter is not
enabled.
;; From -pass-remarks=memprof and -memprof-print-function-guids
82
-
; CHECK: MemProf: Function GUID 4708092051066754107 is _Z2f1v
83
-
; CHECK: remark: memprof-dump-matched-alloc-site.cc:1:21: call in function _Z2f1v matched alloc context with alloc type notcold total size 3 full context id 5736731103568718490 frame count 1
84
-
; CHECK: MemProf: Function GUID 14255129117669598641 is _Z2f2v
85
-
; CHECK: remark: memprof-dump-matched-alloc-site.cc:1:21: call in function _Z2f2v matched alloc context with alloc type notcold total size 3 full context id 5736731103568718490 frame count 2
86
-
; CHECK: MemProf: Function GUID 2771528421763978342 is _Z2f3v
87
-
; CHECK: remark: memprof-dump-matched-alloc-site.cc:1:21: call in function _Z2f3v matched alloc context with alloc type notcold total size 3 full context id 5736731103568718490 frame count 3
88
+
; FUNCGUID: MemProf: Function GUID 4708092051066754107 is _Z2f1v
89
+
; REMARK: remark: memprof-dump-matched-alloc-site.cc:1:21: call in function _Z2f1v matched alloc context with alloc type notcold total size 3 full context id 5736731103568718490 frame count 1
90
+
; FUNCGUID: MemProf: Function GUID 14255129117669598641 is _Z2f2v
91
+
; REMARK: remark: memprof-dump-matched-alloc-site.cc:1:21: call in function _Z2f2v matched alloc context with alloc type notcold total size 3 full context id 5736731103568718490 frame count 2
92
+
; FUNCGUID: MemProf: Function GUID 2771528421763978342 is _Z2f3v
93
+
; REMARK: remark: memprof-dump-matched-alloc-site.cc:1:21: call in function _Z2f3v matched alloc context with alloc type notcold total size 3 full context id 5736731103568718490 frame count 3
88
94
89
-
;; From -memprof-print-match-info
90
-
; CHECK: MemProf notcold context with id 5736731103568718490 has total profiled size 3 is matched with 1 frames
91
-
; CHECK: MemProf notcold context with id 5736731103568718490 has total profiled size 3 is matched with 2 frames
92
-
; CHECK: MemProf notcold context with id 5736731103568718490 has total profiled size 3 is matched with 3 frames
95
+
; MATCH: MemProf notcold context with id 5736731103568718490 has total profiled size 3 is matched with 1 frames
96
+
; STACK-SAME: and call stack 16675831946704128299 1244320836757332728 8373967866436022208 5401059281181789382
97
+
; MATCH: MemProf notcold context with id 5736731103568718490 has total profiled size 3 is matched with 2 frames
98
+
; STACK-SAME: and call stack 16675831946704128299 1244320836757332728 8373967866436022208 5401059281181789382
99
+
; MATCH: MemProf notcold context with id 5736731103568718490 has total profiled size 3 is matched with 3 frames
100
+
; STACK-SAME: and call stack 16675831946704128299 1244320836757332728 8373967866436022208 5401059281181789382
0 commit comments