Performance Inspector supports access to the binary trace file (NRM2 files).
Not supported yet on Linux.
Opens the requested binary trace file and makes it ready for access.
|
Closes the currently open binary trace file. It is no longer accessible.
|
Returns a pointer to the next trace record (hook).
|
Returns information about the currently open binary trace file.
|
Sets whether or not normal messages are displayed to stdout.
|
Sets whether or not the raw hook data is returned by Nrm2GetNextHook().
|
Trace hook data.
#define HOOK_MAX_INTS 128
#define HOOK_MAX_STRS 16 #define HOOK_MAX_STR_LEN 2048 typedef struct _trace_hook TRACE_HOOK; typedef struct _trace_hook nrm2_file_info_t; struct _trace_hook { UCHAR * raw; USHORT hook_type; USHORT hook_len; USHORT cpu_no; USHORT major; UINT32 minor; UINT32 tlo; UINT32 thi; UINT32 file_offset; USHORT ints; USHORT strings; UINT32 ival[HOOK_MAX_INTS]; UINT32 slen[HOOK_MAX_STRS]; UCHAR sval[HOOK_MAX_STRS][HOOK_MAX_STR_LEN]; }; |
Describes the contents of a binary trace (.NRM2) file.
typedef struct _nrm2_file_info NRM2_FILE_INFO;
typedef struct _nrm2_file_info nrm2_file_info_t; struct _nrm2_file_info { int num_cpus; UINT32 buffer_size; UINT32 data_size[MAX_CPUS]; int hook_cnt[MAX_CPUS]; int buffer_full[MAX_CPUS]; UINT64 drift[MAX_CPUS]; UINT32 cpu_speed_mhz; int ascii; int cr_value; int little_endian; int type01_no_ts; int interval_id; int num_metrics; int metrics[TRACE_MAX_METRICS]; int os_32bits; int cpu_architecture; char os[8]; }; |