StopWatch.h File Reference


Detailed Description

Debugging tool for measuring time.

#include <support/SupportDefs.h>

Go to the source code of this file.

Classes

class  SPerformanceSample
class  SStopWatch

Defines

#define _INCLUDES_PERFORMANCE_INSTRUMENTATION   0
#define B_PERFORMANCE_NODE(weight, name)

Enumerations

enum  {
  B_STOP_WATCH_SILENT = (1<<0), B_STOP_WATCH_NESTING = (1<<1), B_STOP_WATCH_CLEAR_CACHE = (1<<2), B_STOP_WATCH_RAW = (1<<3),
  B_STOP_WATCH_HIGH_PRIORITY = (1<<4), B_STOP_WATCH_QUANTIFY = (1<<5), B_STOP_WATCH_NO_TIME = (1<<6)
}
enum  { B_PROFILE_KEEP_SAMPLES = (1<<0), B_PROFILE_UPLOAD_SAMPLES = (1<<1) }
enum  { B_COUNT_HIGH_PRECISION = (1<<0) }
enum  { B_PERFORMANCE_WEIGHT_EMPTY = 100, B_PERFORMANCE_WEIGHT_LIGHT = 200, B_PERFORMANCE_WEIGHT_MEDIUM = 300, B_PERFORMANCE_WEIGHT_HEAVY = 400 }
enum  perf_counter_reg_t { B_COUNT_REGISTER_CYCLES = 0, B_COUNT_REGISTER_A = 1, B_COUNT_REGISTER_B = 2 }
enum  perf_counter_t {
  B_COUNT_ICACHE_MISS = 0, B_COUNT_DATA_STALL = 2, B_COUNT_ITLB_MISS = 3, B_COUNT_DTLB_MISS = 4,
  B_COUNT_BRANCH_INSTRUCTION = 5, B_COUNT_BRANCH_MISPREDICTED = 6, B_COUNT_INSTRUCTION = 7, B_COUNT_DBUFFER_STALL_DURATION = 8,
  B_COUNT_DBUFFER_STALL = 9, B_COUNT_DCACHE_ACCESS = 10, B_COUNT_DCACHE_MISS = 11, B_COUNT_DCACHE_WRITEBACK = 12,
  B_COUNT_PC_CHANGE = 13
}


Define Documentation

#define _INCLUDES_PERFORMANCE_INSTRUMENTATION   0