| Line |   | 
|---|
| 1 | /* $Id: perfview.h,v 1.3 2001-11-12 23:05:06 phaller Exp $ */
 | 
|---|
| 2 | 
 | 
|---|
| 3 | /*
 | 
|---|
| 4 |  * Project Odin Software License can be found in LICENSE.TXT
 | 
|---|
| 5 |  *
 | 
|---|
| 6 |  * Win32 performance measurement and self-profiling API functions
 | 
|---|
| 7 |  *
 | 
|---|
| 8 |  * Copyright 2001 Patrick Haller <patrick.haller@innotek.de>
 | 
|---|
| 9 |  */
 | 
|---|
| 10 | 
 | 
|---|
| 11 | 
 | 
|---|
| 12 | #ifndef _PERFVIEW_H_
 | 
|---|
| 13 | #define _PERFVIEW_H_
 | 
|---|
| 14 | 
 | 
|---|
| 15 | #include <stdio.h>
 | 
|---|
| 16 | 
 | 
|---|
| 17 | #ifdef __cplusplus
 | 
|---|
| 18 | extern "C" {
 | 
|---|
| 19 | #endif
 | 
|---|
| 20 |   
 | 
|---|
| 21 |   
 | 
|---|
| 22 | // calibrate the subsystem
 | 
|---|
| 23 | void _Optlink PerfView_Initialize(void);
 | 
|---|
| 24 | 
 | 
|---|
| 25 | // register a call to a function
 | 
|---|
| 26 | void _Optlink PerfView_RegisterCall(char* pszCallerName,
 | 
|---|
| 27 |                                     char* pszFunctionName, 
 | 
|---|
| 28 |                                     unsigned long int nTicks);
 | 
|---|
| 29 | 
 | 
|---|
| 30 | // dump the collected profile to the specified file
 | 
|---|
| 31 | void _Optlink PerfView_DumpProfile(FILE *file);
 | 
|---|
| 32 | 
 | 
|---|
| 33 | // write the standard performance profile logfile
 | 
|---|
| 34 | void _Optlink PerfView_Write();
 | 
|---|
| 35 |   
 | 
|---|
| 36 |   
 | 
|---|
| 37 | #ifdef __cplusplus
 | 
|---|
| 38 | }
 | 
|---|
| 39 | #endif
 | 
|---|
| 40 |   
 | 
|---|
| 41 | #endif /* _PERFVIEW_H_ */
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.