branch: elpa/flamegraph
commit 58eca0fed8afcf575834c42b69316dbac61eb27d
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
Use flamegraph--frame-display-name more
---
flamegraph.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/flamegraph.el b/flamegraph.el
index 1fb1ec9c9f..4de44d51ac 100644
--- a/flamegraph.el
+++ b/flamegraph.el
@@ -170,7 +170,7 @@ widths are relative to."
;;; Frame appearance
(defun flamegraph--entry-name (entry)
- "Return a display name for calltree ENTRY."
+ "Return ENTRY as a plain string, without stripping profiler metadata."
(cond ((eq entry t) "Others")
((eq entry '...) "...")
((stringp entry) entry)
@@ -344,7 +344,7 @@ outermost frames.")
(profiler-format-number flamegraph--grand-total)
flamegraph--unit
(if zoomed
- (flamegraph--entry-name (profiler-calltree-entry
root))
+ (flamegraph--frame-display-name
(profiler-calltree-entry root))
"all")
(if zoomed
(format " (%s)" (flamegraph--percent
@@ -552,7 +552,7 @@ necessarily its definition."
(message "Source file not found: %s"
(abbreviate-file-name path)))))))
(t (message "Cannot find definition of: %s"
- (flamegraph--entry-name entry))))))))
+ (flamegraph--frame-display-name entry))))))))
(defun flamegraph--frame-display-name (entry)
"Return ENTRY's name with embedded source location text stripped."