TaskTracer: Difference between revisions

Jump to navigation Jump to search
597 bytes added ,  20 November 2014
→‎How to add TaskTracer labels: Edit AddLabel section
(Add a new section about label)
(→‎How to add TaskTracer labels: Edit AddLabel section)
Line 83: Line 83:


== How to add TaskTracer labels ==
== How to add TaskTracer labels ==
Our ''ultimate'' goal is to leverage labels or debugging information that already existed in the gecko code base. As in current phase, we provide a quick and easy way for developers to add debugging messages.
=== For Gecko developers ===
  #include "GeckoTaskTracer.h"
  mozilla::tasktracer::AddLabel(msg_with_printf_format_string);
For example, <code> AddLabel("Function %d is called %d times.", name, count); </code>
===For Gaia developers===
Simply prefix '''#tt#''' to your console.log message, message can still be found in adb logcat.
  console.log("#tt#"+console_log_format_string);


== How to read the profile using Nephthys ==
== How to read the profile using Nephthys ==
Confirmed users
220

edits

Navigation menu