Wiki source for clearProfile


Show raw source

======**Profiling**======
sqInt clearProfile(void);
sqInt dumpProfile(void);
sqInt startProfiling(void);
sqInt stopProfiling(void);

defined as
int clearProfile(void){return 0;}
int dumpProfile(void){return 0;}
int startProfiling(void){return 0;}
int stopProfiling(void) {return 0;}


**Parms**: NONE
**return**: NONE, fake return of zero
**From**: Interpreter
**Why**:
To enable profiling.

**Responsibility**:
12 years back when light-speed C was the way to do macintosh development, and the windows and linux port still were underway the primitive tool set on the macintosh allowed you to collect run time statistics on call patterns and time to execute. To enable this you had to clear profiling, start profiling, stop profiling, and then dump profiling. Right so before the ability to have named primitived, plugins, FFI etc we dedicated a primitive or 4 to special purposes.

**MacIntosh**
//os-9/OSXCarbon//
all return 0
//Cocoa://
TBD

**iPhone**
all return 0

**Unix**
all return 0

**Windows**
all return 1

**BUGS**
Windows returning 1 is meaningless, to fail a primitive you must set set the success flag
Really we could ditch these primitive

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki