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

📄 perf.h.rej

📁 lwIP-Softools-11Jul2002-alpha
💻 REJ
字号:
****************** 30,46 ****   *    * Author: Adam Dunkels <adam@sics.se>   *-  * $Id: perf.h,v 1.1 2001/12/12 10:00:57 adam Exp $   */  #ifndef __ARCH_PERF_H__  #define __ARCH_PERF_H__    #ifdef PERF  #define PERF_START  { \                           unsigned long __c1l, __c1h, __c2l, __c2h; \                           __asm__(".byte 0x0f, 0x31" : "=a" (__c1l), "=d" (__c1h))  #define PERF_STOP(x)   __asm__(".byte 0x0f, 0x31" : "=a" (__c2l), "=d" (__c2h)); \                         perf_print(__c1l, __c1h, __c2l, __c2h, x);}  #else /* PERF */  #define PERF_START    /* null definition */  #define PERF_STOP(x)  /* null definition */--- 30,55 ----   *    * Author: Adam Dunkels <adam@sics.se>   *+  * $Id: perf.h,v 1.2 2001/12/14 20:13:44 adam Exp $   */  #ifndef __ARCH_PERF_H__  #define __ARCH_PERF_H__  + #include <sys/times.h>+   #ifdef PERF  #define PERF_START  { \                           unsigned long __c1l, __c1h, __c2l, __c2h; \                           __asm__(".byte 0x0f, 0x31" : "=a" (__c1l), "=d" (__c1h))  #define PERF_STOP(x)   __asm__(".byte 0x0f, 0x31" : "=a" (__c2l), "=d" (__c2h)); \                         perf_print(__c1l, __c1h, __c2l, __c2h, x);}+ + /*#define PERF_START do { \+                      struct tms __perf_start, __perf_end; \+                      times(&__perf_start)+ #define PERF_STOP(x) times(&__perf_end); \+                      perf_print_times(&__perf_start, &__perf_end, x);\+                      } while(0)*/  #else /* PERF */  #define PERF_START    /* null definition */  #define PERF_STOP(x)  /* null definition */

⌨️ 快捷键说明

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