Comments (7)
Hey! Would it be possible for you upload the .so
so I can take a look? We unwind using DWARF data.
Feel free to join our Discord (https://discordapp.com/channels/629013440635207702/629013441096450058) for more real-time debugging help - I am fmayer there :)
from perfetto.
Also, could you attach the output of adb logcat | grep "perfetto\|heapprofd"
so I can see if there is something suspicious there?
from perfetto.
04-28 09:49:18.836 19072 19072 I perfetto: perfetto_cmd.cc:604 Connected to the Perfetto traced service, starting tracing for 604800000 ms
04-28 09:49:18.839 7385 7385 I perfetto: tracing_service_impl.cc:529 Configured tracing, #sources:2, duration:604800000 ms, #buffers:1, total buffer size:32768 KB, total sessions:2
04-28 09:49:58.263 19072 19072 I perfetto: perfetto_cmd.cc:815 SIGINT/SIGTERM received: disabling tracing.
04-28 09:49:58.407 7386 7386 I perfetto: probes_producer.cc:314 Producer stop (id=7)
04-28 09:49:58.410 19072 19072 I perfetto: perfetto_cmd.cc:674 Trace written into the output file
04-28 09:49:58.425 7385 7385 I perfetto: tracing_service_impl.cc:1660 Tracing session 3 ended, total sessions:1
04-28 09:49:58.579 7102 7174 E perfetto: client.cc:375 Failed to send control socket byte. (errno: 32, Broken pipe)
04-28 09:49:58.579 7102 19125 E perfetto: client.cc:375 Failed to send control socket byte. (errno: 32, Broken pipe)
04-28 10:38:47.374 7600 7600 I perfetto: perfetto_cmd.cc:815 SIGINT/SIGTERM received: disabling tracing.
04-28 10:38:47.380 7386 7386 I perfetto: probes_producer.cc:314 Producer stop (id=4)
04-28 10:38:47.381 7600 7600 I perfetto: perfetto_cmd.cc:674 Trace written into the output file
04-28 10:38:47.391 7385 7385 I perfetto: tracing_service_impl.cc:1660 Tracing session 2 ended, total sessions:0
^C
I wasn't using PERFETTO_BINARY_PATH
above, could that be part of the problem?
from perfetto.
Ad PERFETO_BINARY_PATH
: That shouldn't be the cause, as that would still show the unsymbolized frames.
from perfetto.
The library had all the unwinding information stripped. We need one of
.gnu_debugdata
.eh_frame
(+ preferably.eh_frame_hdr
).debug_frame
.
We do not support frame-pointer unwinding.
@tmm1 could you add your changes to your build to this bug for posterity?
from perfetto.
So the issue was that the android build process strips all the jniLibs. I tried LOCAL_STRIP_MODE := none
, but ultimately what worked was adding packagingOptions.doNotStrip "**/*.so"
to my app/build.grade
FYI, to anyone who ends up here:
The library had all the unwinding information stripped
You can check this yourself using readelf -S libname.so
and see if one of the debug sections is listed. The list of known sections can be seen inside libunwindstack
.gnu_debugdata
This is a compressed version of .debug_frame
and can be generated with something like do_strip_keep_mini_debug_info
from perfetto.
ultimately what worked was adding
packagingOptions.doNotStrip "**/*.so"
to my app/build.grade
There is a way to do this with just debug builds now in AGP 7.0.0: https://issuetracker.google.com/issues/155215248#comment5
from perfetto.
Related Issues (20)
- perfetto can not use trace_process_shell open large perfetto file HOT 17
- libperfetto_sdk.so coredump HOT 1
- ValueError: invalid literal for int() with base 10: '' HOT 1
- Is there a way to assign names to threads instead of just the thread id? HOT 3
- [BUG] Perfetto_SQL sample can't work HOT 1
- Misc Global Tracks => Screenshots track is always shown HOT 4
- Interested in Bazel for JS? HOT 3
- query uninterruptible sleep state with python sql HOT 1
- visualization cpu utilization per process HOT 5
- "CPU by Thread" view does not include information (eg. thread_state etc.) associated with CPU0 HOT 1
- convert android command line parameters to config file HOT 5
- show memory used per app UI HOT 7
- About the bug in base_slice_track in Perfetto UI HOT 1
- request feature to show diskIO graph just similar to bootchart HOT 2
- Could Debug Tracks support nominal color? HOT 2
- sched_wakeup & sched_waking events are missing in lastet UI after loading from JSON result(converted from origin trace_file.perfetto-trace) HOT 1
- Can I jump to some timestamp directly? HOT 2
- How to collect track event data of a specified process? HOT 1
- cpu freq captured time not the same between golden and silver core HOT 1
- Perfetto v40.0's Jump link invalid HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perfetto.