📄 mal_profiler.h
字号:
#ifndef _MAL_PROFILER_H#define _MAL_PROFILER_H#include "mal_client.h"#ifdef HAVE_SYS_TIMES_H# include <sys/times.h>#endif#if defined(SOLARIS) && OSVER < 560#include "/usr/ucbinclude/sys/rusage.h"#include "/usr/ucbinclude/sys/resource.h"#endif#ifdef HAVE_SYS_RESOURCE_H#include <sys/resource.h>typedef struct rusage Rusage;#endiftypedef struct tms Tms;typedef struct mallinfo Mallinfo;mal_export str activateCounter(str name);mal_export str deactivateCounter(str name);mal_export str openProfilerStream(void);mal_export str closeProfilerStream(void);mal_export void initProfiler(MalBlkPtr mb);mal_export void profilerEvent(Module cntxt, MalBlkPtr mb, MalStkPtr stk, int pc);mal_export str setLogFile(Module cntxt, str fname);mal_export str setStartPoint(Module cntxt, str mod, str fcn);mal_export str setEndPoint(Module cntxt, str mod, str fcn);mal_export void setCachedProfiling(void);mal_export void setOnlineProfiling(void);mal_export void setOfflineProfiling(void);mal_export int profilerAvailable(void);mal_export str startProfiling(void);mal_export str stopProfiling(void);mal_export str cleanupProfiler(void);mal_export int instrFilter(InstrPtr pci, str mod, str fcn);mal_export void setFilter(Module cntxt, str mod, str fcn);mal_export void resetFilter(Module cntxt, str mod, str fcn);mal_export void profileReport(Module cntxt, int outer, stream *out);mal_export void MPresetProfiler(stream *fdout);mal_export int malProfileMode;mal_export void startTrace(void);mal_export void stopTrace(void);mal_export void clearTrace(void);mal_export BAT *getTrace(str ev);#define DEBUG_MAL_PROFILER#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -