⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 profil.h

📁 c++编程宝典源码及Quincy99编译器 是《标准C++编程宝典》电子工业出版社的光盘
💻 H
字号:
/* profil.h: gprof profiling header file   Copyright 1998 Cygnus Solutions.This file is part of Cygwin.This software is a copyrighted work licensed under the terms of theCygwin license.  Please consult the file "CYGWIN_LICENSE" fordetails. *//* * This file is taken from Cygwin distribution. Please keep it in sync. * The differences should be within __MINGW32__ guard. *//* profiling frequency.  (No larger than 1000) */#define PROF_HZ			100/* convert an addr to an index */#define PROFIDX(pc, base, scale)	\  ({									\    size_t i = (pc - base) / 2;				\    if (sizeof (unsigned long long int) > sizeof (size_t))		\      i = (unsigned long long int) i * scale / 65536;			\    else								\      i = i / 65536 * scale + i % 65536 * scale / 65536;		\    i;									\  })/* convert an index into an address */#define PROFADDR(idx, base, scale)	\	((base) + ((((idx) << 16) / (scale)) << 1))/* convert a bin size into a scale */#define PROFSCALE(range, bins)		(((bins) << 16) / ((range) >> 1))typedef void *_WINHANDLE;struct profinfo {    _WINHANDLE targthr;			/* thread to profile */    _WINHANDLE profthr;			/* profiling thread */    u_short *counter;			/* profiling counters */    u_long lowpc, highpc;		/* range to be profiled */    u_int scale;			/* scale value of bins */};int profile_ctl(struct profinfo *, char *, size_t, u_long, u_int);int profil(char *, size_t, u_long, u_int);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -