Heap profiler Symbolizer

24 views
Skip to first unread message

anand...@gmail.com

unread,
Sep 24, 2019, 5:43:45 AM9/24/19
to memory-dev
Hi
I am trying to obtain a heap dump on Windows as per the instructions on this page. However, when I try to symbolize the trace I get an error:

I am giving below command in cmd promt.

python C:\Users\Admin\Desktop\Memory\catapult-master\tracing\tracing\extras\symbolizer\symbolize_trace.py --addr2line-executable C:\Users\Admin\Desktop\Memory\gperftools-master.tar\gperftools-master\Debug\addr2line-pdb.exe C:\Users\Admin\Desktop\Memory\Dumps\Dump5.gz

I am getting following error:

C:\Users\Admin>python C:\Users\Admin\Desktop\Memory\catapult-master\tracing\trac
ing\extras\symbolizer\symbolize_trace.py --addr2line-executable C:\Users\Admin\D
esktop\Memory\gperftools-master.tar\gperftools-master\Debug\addr2line-pdb.exe C:
\Users\Admin\Desktop\Memory\Dumps\Dump5.gz
Reading trace file...
Traceback (most recent call last):
  File "C:\Users\Admin\Desktop\Memory\catapult-master\tracing\tracing\extras\sym
bolizer\symbolize_trace.py", line 1884, in <module>
    main(sys.argv[1:])
  File "C:\Users\Admin\Desktop\Memory\catapult-master\tracing\tracing\extras\sym
bolizer\symbolize_trace.py", line 1814, in main
    trace = Trace(json.load(trace_file), options.frame_as_object_type)
  File "C:\Users\Admin\Desktop\Memory\catapult-master\tracing\tracing\extras\sym
bolizer\symbolize_trace.py", line 1062, in __init__
    pe.process)
  File "C:\Users\Admin\Desktop\Memory\catapult-master\tracing\tracing\extras\sym
bolizer\symbolize_trace.py", line 375, in __init__
    regions.sort()
TypeError: '<' not supported between instances of 'Region' and 'Region'

please help in resolving the issue.

Thanks,
Ananda

Victor Miura

unread,
May 11, 2021, 4:41:26 PM5/11/21
to memory-dev, anand...@gmail.com
This is a Python 2 vs Python 3 compatibility issue.  Please try with 2.

Bruce Dawson

unread,
May 11, 2021, 7:40:01 PM5/11/21
to Victor Miura, memory-dev, anand...@gmail.com
Alternately, if you are able to fix the Python 3 issues then I'm sure we would accept patches - we are trying to remove Python 2 from our builds.

--
You received this message because you are subscribed to the Google Groups "memory-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to memory-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/memory-dev/14d20b98-65d9-49dd-a7d5-d790aa96b30fn%40chromium.org.


--
Bruce Dawson, he/him

Reply all
Reply to author
Forward
0 new messages