1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
#ifndef METHOD_WINDOW_H__
#define METHOD_WINDOW_H__
#include <stdio.h>
enum {
MCLASS_COLUMN,
MMETHOD_NAME_COLUMN,
MSECS_COLUMN,
MCALLS_COLUMN,
MSUBS_COLUN,
MTOTAL_COLUMN,
MTOTAL_CALL_COLUMN,
MOBJECTS_COLUMN,
MOBJSCALL_COLUMN,
MBYTES_COLUMN,
MMETHOD_COLUMN, /* pointer to the method, please keep next to last */
MN_COLUMNS
};
/** Build the window used for tracing methods.
*/
void setup_method_tracing ();
/** Update the data in the method tracing window.
* @param methods all the methods in the system.
*/
void update_method_tree (hashtab* methods);
/** Dump method data to the given file.
*/
void dump_methods (hashtab* methods, FILE* f);
/** Dispose the window used for method tracing.
*/
void quit_method_window ();
/** Get current visible rows. */
int get_method_rows ();
/** Set the number of rows to show. */
void set_method_rows (int rows);
#endif /* METHOD_WINDOW_H__ */
/* Emacs Local Variables: */
/* Emacs mode:C */
/* Emacs c-indentation-style:"gnu" */
/* Emacs c-hanging-braces-alist:((brace-list-open)(brace-entry-open)(defun-open after)(substatement-open after)(block-close . c-snug-do-while)(extern-lang-open after)) */
/* Emacs c-cleanup-list:(brace-else-brace brace-elseif-brace space-before-funcall) */
/* Emacs c-basic-offset:4 */
/* Emacs End: */
|