33 #ifndef _TIME_PROFILE_H 34 #define _TIME_PROFILE_H 87 strncpy(tpe.
name, name,
sizeof(tpe.
name));
96 int64_t lastutime = tp->
utime;
103 double cumtime = (stamp->
utime - tp->
utime)/1000000.0;
105 double parttime = (stamp->
utime - lastutime)/1000000.0;
107 printf(
"%2d %32s %15f ms %15f ms\n", i, stamp->
name, parttime*1000, cumtime*1000);
109 lastutime = stamp->
utime;
static void zarray_get_volatile(const zarray_t *za, int idx, void *p)
static void timeprofile_stamp(timeprofile_t *tp, const char *name)
static int zarray_size(const zarray_t *za)
static void zarray_destroy(zarray_t *za)
static void timeprofile_display(timeprofile_t *tp)
static zarray_t * zarray_create(size_t el_sz)
static timeprofile_t * timeprofile_create()
static uint64_t timeprofile_total_utime(timeprofile_t *tp)
static void zarray_clear(zarray_t *za)
static void timeprofile_clear(timeprofile_t *tp)
static void timeprofile_destroy(timeprofile_t *tp)
static void zarray_add(zarray_t *za, const void *p)