add performance logging
This commit is contained in:
parent
73c2acd37e
commit
1f96830f10
5 changed files with 71 additions and 1 deletions
|
|
@ -18,3 +18,11 @@ extern int explain;
|
|||
#else
|
||||
#define E(...)
|
||||
#endif
|
||||
|
||||
#ifdef PERF
|
||||
#define PS() long __start = clock()
|
||||
#define PE() l("%s: %fs", __func__, ((double) (clock() - __start)) / CLOCKS_PER_SEC)
|
||||
#else
|
||||
#define PS()
|
||||
#define PE()
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue