Home
last modified time | relevance | path

Searched refs:nr_mem_stats (Results 1 – 3 of 3) sorted by relevance

/tools/perf/ui/
A Dhist.c166 for (int i = 0; i < hists->nr_mem_stats; i++) { in hpp__fmt_mem_stat()
421 for (int i = 0; i < hists->nr_mem_stats; i++) { in hpp__header_mem_stat_fn()
1240 unsigned nr_mem_stats = 0; in perf_hpp__alloc_mem_stats() local
1246 assert(nr_mem_stats < ARRAY_SIZE(mst)); in perf_hpp__alloc_mem_stats()
1247 mst[nr_mem_stats++] = hpp__mem_stat_type(fmt); in perf_hpp__alloc_mem_stats()
1250 if (nr_mem_stats == 0) in perf_hpp__alloc_mem_stats()
1258 hists->mem_stat_types = calloc(nr_mem_stats, in perf_hpp__alloc_mem_stats()
1263 hists->mem_stat_total = calloc(nr_mem_stats, in perf_hpp__alloc_mem_stats()
1268 memcpy(hists->mem_stat_types, mst, nr_mem_stats * sizeof(*mst)); in perf_hpp__alloc_mem_stats()
1269 hists->nr_mem_stats = nr_mem_stats; in perf_hpp__alloc_mem_stats()
/tools/perf/util/
A Dhist.c342 if (hists->nr_mem_stats == 0) in hists__update_mem_stat()
346 he->mem_stat = calloc(hists->nr_mem_stats, sizeof(*he->mem_stat)); in hists__update_mem_stat()
351 for (int i = 0; i < hists->nr_mem_stats; i++) { in hists__update_mem_stat()
365 if (hists->nr_mem_stats == 0) in hists__add_mem_stat()
368 for (int i = 0; i < hists->nr_mem_stats; i++) { in hists__add_mem_stat()
377 if (hists->nr_mem_stats == 0) in hists__clone_mem_stat()
380 dst->mem_stat = calloc(hists->nr_mem_stats, sizeof(*dst->mem_stat)); in hists__clone_mem_stat()
384 for (int i = 0; i < hists->nr_mem_stats; i++) { in hists__clone_mem_stat()
393 if (hists->nr_mem_stats == 0) in hists__decay_mem_stat()
396 for (int i = 0; i < hists->nr_mem_stats; i++) { in hists__decay_mem_stat()
A Dhist.h137 int nr_mem_stats; member

Completed in 16 milliseconds