Traces: a logcat replacement for C/C++ Android code

160 views
Skip to first unread message

Yotam Rubin

unread,
May 27, 2012, 8:32:19 AM5/27/12
to android-platform
Hi guys,

Traces is a tracing framework for C/C++ Linux/Android applications.
Its main features are automatic function tracing, type-aware tracing,
low overhead and colored output.
I've recently finished porting Traces to Android in order to replace
logcat usage in our log-intensive application. Feel free to check out
the project page:
https://github.com/yotamr/traces/wiki
And the Android support wiki page:
https://github.com/yotamr/traces/wiki/Android-support

Regards,
Yotam

sandeep.p...@wipro.com

unread,
May 31, 2012, 3:15:19 AM5/31/12
to android-...@googlegroups.com
Hi Yotam Rubin,

             I was going through the 'Traces' framework. It's a nice framework for the logging/debugging purpose. But, How we can integrate this stuff onto android? 
             Any sample usage of it with android native applications will be really useful. 

Regards
Sandeep S.P

Yotam Rubin

unread,
May 31, 2012, 11:02:33 AM5/31/12
to android-...@googlegroups.com
Hi Sandeep,

   I plan to put up a wiki page with all the necessary documentation and patches for the Android build system.

In a nutshell, it's pretty simple, if you want a quick and dirty solution:
 1. Download the dependencies and make sure the demo works
 2. In your Android.mk, set LOCAL_CC or LOCAL_CXX to "$PATH_TO_CCWRAP.py ($TARGET_CC/CXX)
 3. ln -s TRACES_PATH $ANDROID_ROOT/external/traces
 4. Compile

You should make sure that your Android target has a directory /dev/shm in a tmpfs system.
The build will also compile trace_dumper and the trace readers, which can be run your Android target.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/FTbhcXEWhsEJ.

To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

Reply all
Reply to author
Forward
0 new messages