80 strncpy(tpe.
name, name,
sizeof(tpe.
name));
89 int64_t lastutime = tp->
utime;
96 double cumtime = (stamp->
utime - tp->
utime)/1000000.0;
98 double parttime = (stamp->
utime - lastutime)/1000000.0;
100 printf(
"%2d %32s %15f ms %15f ms\n", i, stamp->
name, parttime*1000, cumtime*1000);
102 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)