📄 proflfun.h
字号:
/*******************************************************/
/* "C" Language Integrated Production System */
/* */
/* CLIPS Version 6.24 06/05/06 */
/* */
/* CONSTRUCT PROFILING FUNCTIONS HEADER FILE */
/*******************************************************/
/*************************************************************/
/* Purpose: */
/* */
/* Principal Programmer(s): */
/* Gary D. Riley */
/* */
/* Contributing Programmer(s): */
/* */
/* Revision History: */
/* */
/* 6.24: Renamed BOOLEAN macro type to intBool. */
/* */
/*************************************************************/
#ifndef _H_proflfun
#define _H_proflfun
#ifdef LOCALE
#undef LOCALE
#endif
#ifdef _PROFLFUN_SOURCE_
#define LOCALE
#else
#define LOCALE extern
#endif
#include "userdata.h"
struct constructProfileInfo
{
struct userData usrData;
long numberOfEntries;
unsigned int childCall : 1;
double startTime;
double totalSelfTime;
double totalWithChildrenTime;
};
struct profileFrameInfo
{
unsigned int parentCall : 1;
unsigned int profileOnExit : 1;
double parentStartTime;
struct constructProfileInfo *oldProfileFrame;
};
#define PROFLFUN_DATA 15
struct profileFunctionData
{
double ProfileStartTime;
double ProfileEndTime;
double ProfileTotalTime;
int LastProfileInfo;
double PercentThreshold;
struct userDataRecord ProfileDataInfo;
unsigned char ProfileDataID;
int ProfileUserFunctions;
int ProfileConstructs;
struct constructProfileInfo *ActiveProfileFrame;
char *OutputString;
};
#define ProfileFunctionData(theEnv) ((struct profileFunctionData *) GetEnvironmentData(theEnv,PROFLFUN_DATA))
LOCALE void ConstructProfilingFunctionDefinitions(void *);
LOCALE void ProfileCommand(void *);
LOCALE void ProfileInfoCommand(void *);
LOCALE void StartProfile(void *,
struct profileFrameInfo *,
struct userData **,
intBool);
LOCALE void EndProfile(void *,struct profileFrameInfo *);
LOCALE void ProfileResetCommand(void *);
LOCALE void ResetProfileInfo(struct constructProfileInfo *);
LOCALE double SetProfilePercentThresholdCommand(void *);
LOCALE double SetProfilePercentThreshold(void *,double);
LOCALE double GetProfilePercentThresholdCommand(void *);
LOCALE double GetProfilePercentThreshold(void *);
LOCALE intBool Profile(void *,char *);
LOCALE void DeleteProfileData(void *,void *);
LOCALE void *CreateProfileData(void *);
LOCALE char *SetProfileOutputString(void *,char *);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -