diff options
| author | Andrey Hristov <andrey@php.net> | 2010-10-29 15:02:39 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 2010-10-29 15:02:39 +0000 |
| commit | c10af225c428f7c5a24c8367ae2b5c4bdf5aa0cb (patch) | |
| tree | 4d6697f04614915530d24efde3ee5a188d44a205 /ext/mysqlnd/mysqlnd_priv.h | |
| parent | cd6ea54deb21976ffb87b9ffe18657baad8698c8 (diff) | |
| download | php-git-c10af225c428f7c5a24c8367ae2b5c4bdf5aa0cb.tar.gz | |
- More features for the profiling, create aggregates and dump them
on file close.
- Also add a trace modifier to switch on and off the profiling.
- With additional compiler switch the profiling can be completely omitted,
of course it makes sense only when --enable-debug. Because otherwise
there is no tracing, thus no profiling.
- Added a fix for Windows for handling trace files on different devices
(special handing of ':' )
Diffstat (limited to 'ext/mysqlnd/mysqlnd_priv.h')
| -rw-r--r-- | ext/mysqlnd/mysqlnd_priv.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_priv.h b/ext/mysqlnd/mysqlnd_priv.h index 2f91d0732a..4681c8cbda 100644 --- a/ext/mysqlnd/mysqlnd_priv.h +++ b/ext/mysqlnd/mysqlnd_priv.h @@ -68,7 +68,16 @@ #endif - +#define MYSQLND_DEBUG_DUMP_TIME 1 +#define MYSQLND_DEBUG_DUMP_TRACE 2 +#define MYSQLND_DEBUG_DUMP_PID 4 +#define MYSQLND_DEBUG_DUMP_LINE 8 +#define MYSQLND_DEBUG_DUMP_FILE 16 +#define MYSQLND_DEBUG_DUMP_LEVEL 32 +#define MYSQLND_DEBUG_APPEND 64 +#define MYSQLND_DEBUG_FLUSH 128 +#define MYSQLND_DEBUG_TRACE_MEMORY_CALLS 256 +#define MYSQLND_DEBUG_PROFILE_CALLS 512 /* Client Error codes */ |
