root/eaccelerator/tags/0.9.4-rc2/debug.h

Revision 122, 3.1 kB (checked in by zoeloelip, 3 years ago)

Some code clean ups and updated VS6 project files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 /*
2    +----------------------------------------------------------------------+
3    | eAccelerator project                                                 |
4    +----------------------------------------------------------------------+
5    | Copyright (c) 2004 - 2005 eAccelerator                               |
6    | http://eaccelerator.net                                              |
7    +----------------------------------------------------------------------+
8    | This program is free software; you can redistribute it and/or        |
9    | modify it under the terms of the GNU General Public License          |
10    | as published by the Free Software Foundation; either version 2       |
11    | of the License, or (at your option) any later version.               |
12    |                                                                      |
13    | This program is distributed in the hope that it will be useful,      |
14    | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
15    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
16    | GNU General Public License for more details.                         |
17    |                                                                      |
18    | You should have received a copy of the GNU General Public License    |
19    | along with this program; if not, write to the Free Software          |
20    | Foundation, Inc., 59 Temple Place - Suite 330, Boston,               |
21    | MA  02111-1307, USA.                                                 |
22    |                                                                      |
23    | A copy is availble at http://www.gnu.org/copyleft/gpl.txt            |
24    +----------------------------------------------------------------------+
25    | Author(s): Dmitry Stogov <dstogov@users.sourceforge.net>                 |
26    |            Bart Vanbrabant <zoeloelip@users.sourceforge.net>                 |
27    +----------------------------------------------------------------------+
28    $Id$
29 */
30
31 #ifndef INCLUDED_DEBUG_H
32 #define INCLUDED_DEBUG_H
33
34 #include "zend.h"
35 #include "zend_API.h"
36 #include "zend_extensions.h"
37 #ifdef ZEND_WIN32
38 #include "win32/time.h"
39 #endif
40
41
42 /* print information about the file that's loaded or cached */
43 #define EA_LOG                  (1<<0L)
44
45 /* print debugging information, mostly about the storing and restoring of a
46  * script's data structures. Gives you detailed information about what eA is
47  * doing
48  */
49 #define EA_DEBUG                (1<<1L)
50
51 /* profile php opcodes */
52 #define EA_PROFILE_OPCODES      (1<<2L)
53
54 /* print out performance data (start - end time) */
55
56 #define EA_TEST_PERFORMANCE     (1<<3L)
57
58 /* log the hashkeys used to cache scripts */
59 #define EA_LOG_HASHKEYS         (1<<4L)
60
61 void ea_debug_init (TSRMLS_D);
62 void ea_debug_shutdown ();
63 void ea_debug_printf (long debug_level, char *format, ...);
64 void ea_debug_error (char *format, ...);
65 void ea_debug_pad (long debug_level TSRMLS_DC);
66 void ea_debug_log (char *format, ...);
67 void ea_debug_binary_print (long debug_level, char *p, int len);
68 void ea_debug_put (long debug_level, char *message);
69 void ea_debug_log_hashkeys (char *p, HashTable * ht);
70
71 void ea_debug_start_time (struct timeval *tvstart);
72 long ea_debug_elapsed_time (struct timeval *tvstart);
73
74 #endif /* INCLUDED_DEBUG_H */
Note: See TracBrowser for help on using the browser.