diff options
Diffstat (limited to 'lisp/profiler.el')
| -rw-r--r-- | lisp/profiler.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/profiler.el b/lisp/profiler.el index 4e02cd1d890..eb72f128c07 100644 --- a/lisp/profiler.el +++ b/lisp/profiler.el | |||
| @@ -275,10 +275,7 @@ Optional argument MODE means only check for the specified mode (cpu or mem)." | |||
| 275 | 275 | ||
| 276 | 276 | ||
| 277 | (define-hash-table-test 'profiler-function-equal #'function-equal | 277 | (define-hash-table-test 'profiler-function-equal #'function-equal |
| 278 | (lambda (f) (cond | 278 | (lambda (f) (if (closurep f) (aref f 1) f))) |
| 279 | ((byte-code-function-p f) (aref f 1)) | ||
| 280 | ((eq (car-safe f) 'closure) (cddr f)) | ||
| 281 | (t f)))) | ||
| 282 | 279 | ||
| 283 | (defun profiler-calltree-build-unified (tree log) | 280 | (defun profiler-calltree-build-unified (tree log) |
| 284 | ;; Let's try to unify all those partial backtraces into a single | 281 | ;; Let's try to unify all those partial backtraces into a single |