Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demangle function names on tracing modules with frida-trace #126

Open
w1redch4d opened this issue Nov 2, 2022 · 0 comments
Open

Demangle function names on tracing modules with frida-trace #126

w1redch4d opened this issue Nov 2, 2022 · 0 comments

Comments

@w1redch4d
Copy link

w1redch4d commented Nov 2, 2022

I think it would be nice to see the output like this:

Started tracing 1908 functions. Press Ctrl+C to stop.
           /* TID 0x5ec3 */
   621 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   622 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   622 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   623 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
           /* TID 0x5ecb */
   623 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   623 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
           /* TID 0x5ec3 */
   624 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   624 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   624 ms  android::VideoFrameSchedulerBase::~VideoFrameSchedulerBase()
   624 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   624 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   624 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   624 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   624 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   624 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
           /* TID 0x5eb2 */
   625 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   625 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   625 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   625 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   626 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   626 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   626 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   626 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()
   626 ms  std::__1::__shared_ptr_pointer<ndk::SharedRefBase*, std::__1::default_delete<ndk::SharedRefBase>, std::__1::allocator<ndk::SharedRefBase> >::__on_zero_shared_weak()
   626 ms     | std::__1::__shared_ptr_emplace<android::MediaFilter::BufferChannel, std::__1::allocator<android::MediaFilter::BufferChannel> >::__on_zero_shared_weak()

than like this:

Started tracing 1908 functions. Press Ctrl+C to stop.
           /* TID 0x5f3a */
   774 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   775 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
   775 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   775 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
   776 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   776 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
   776 ms  _ZN7android23VideoFrameSchedulerBaseD1Ev()
   776 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   776 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
   776 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   776 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
   776 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   776 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
           /* TID 0x5f25 */
   778 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   778 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
   778 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   778 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv()
   778 ms  _ZNSt3__120__shared_ptr_pointerIPN3ndk13SharedRefBaseENS_14default_deleteIS2_EENS_9allocatorIS2_EEE21__on_zero_shared_weakEv()
   778 ms     | _ZNSt3__120__shared_ptr_emplaceIN7android11MediaFilter13BufferChannelENS_9allocatorIS3_EEE21__on_zero_shared_weakEv() 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant