~nathwill-deactivatedaccount-deactivatedaccount/ubuntu/precise/unity/lp-972247

« back to all changes in this revision

Viewing changes to vapi/unity-const.vapi

  • Committer: Gordon Allott
  • Date: 2009-12-18 11:42:37 UTC
  • mfrom: (44.1.8 unity.instrumented)
  • Revision ID: mail@gordallott.com-20091218114237-iol6shag1dh3ruvz
Adds instrumentation and bootcharting support to unity

Instrumentation is enabled by passing --enable-testing to configure and
logging is enabled by passing --enable-boot-logging=foobar.log to unity.

you can then process the log file with ./tools/makebootchart.py --input=foobar.log --output=foobar.svg

instrumenting the code is enabled by decorating a function with START_FUNCTION (); and END_FUNCTION (); or by decorating a smaller process with LOGGING_START_PROCESS (process_name); and LOGGING_END_PROCESS (process_name);

all process names *must* be unique thoughout the system

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
  public static const string DATADIR;
24
24
  [CCode (cname = "PKGDATADIR")]
25
25
  public static const string PKGDATADIR;
 
26
  
 
27
  [CCode (cheader_filename = "unity-utils.h", cname = "LOGGER_START_PROCESS")]
 
28
  public static void LOGGER_START_PROCESS (string name);
 
29
  
 
30
  [CCode (cheader_filename = "unity-utils.h", cname = "LOGGER_END_PROCESS")]
 
31
  public static void LOGGER_END_PROCESS (string name);
 
32
  
 
33
  [CCode (cheader_filename = "unity-utils.h", cname = "START_FUNCTION")]
 
34
  public static void START_FUNCTION ();
 
35
  
 
36
  [CCode (cheader_filename = "unity-utils.h", cname = "END_FUNCTION")]
 
37
  public static void END_FUNCTION ();
26
38
}