3 ** Copyright Kepler Project 2005-2007 (http://www.keplerproject.org/luaprofiler)
4 ** $Id: stack.h,v 1.5 2007/08/22 19:23:53 carregal Exp $
7 /*****************************************************************************
9 Simple stack manipulation
10 *****************************************************************************/
17 typedef struct lprofS_sSTACK_RECORD lprofS_STACK_RECORD
;
19 struct lprofS_sSTACK_RECORD
{
20 clock_t time_marker_function_local_time
;
21 clock_t time_marker_function_total_time
;
29 lprofS_STACK_RECORD
*next
;
32 typedef lprofS_STACK_RECORD
*lprofS_STACK
;
34 typedef struct lprofP_sSTATE lprofP_STATE
;
36 struct lprofP_sSTATE
{
38 lprofS_STACK stack_top
;
41 void lprofS_push(lprofS_STACK
*p
, lprofS_STACK_RECORD r
);
42 lprofS_STACK_RECORD
lprofS_pop(lprofS_STACK
*p
);