N64® Functions Menu
|
al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive
|
|
osProfileInit
Syntax
#include <ultra64.h>
void osProfileInit(OSProf *profp, u32 profcnt);
Explanation
The osProfileInit, osProfileStart, osProfileStop, and osProfileFlush functions provide execution time profiling for disjoint text spaces. Profiling provides CPU-use statistics by profiling the amount of CPU time expended by a program in disjoint text spaces. For general profiling information including the OSProf structure's field elements, the debugging error messages, and possible problems, see the osProfile page.
The osProfileInit function initializes the profiled segment count buffers and starts an IO thread that communicates profile data to the host when requested by the gperf tool. To use it, pass a pointer to an array of OSProf structures (profp) each element of which describes a segment to be profiled. The profcnt argument indicates the number of profiled segments. The osProfileInit function clears the counters for each profiled segment. A thread is
started to service requests for profile data from the gperf tool.
Profiling data can be dumped to the host any time after osProfileInit is
called. Call osProfileInit before calling any other profiler function.
See Also
osProfileStart
osProfileStop
osProfileFlush
gperf
makerom (IRIX 5.3)
makerom (IRIX 6.x)
|
Nintendo® Confidential
Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.
Copyright © 1998
Nintendo of America Inc. All rights reserved Nintendo and N64 are registered trademarks of Nintendo
Last updated March 1998
|
|