mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-15 15:11:41 +03:00
Add stats: arena uptime.
This commit is contained in:
parent
04fec5e084
commit
baf3e294e0
6 changed files with 42 additions and 0 deletions
|
|
@ -261,6 +261,8 @@ struct arena_s {
|
|||
* Synchronization: internal.
|
||||
*/
|
||||
base_t *base;
|
||||
/* Used to determine uptime. Read-only after initialization. */
|
||||
nstime_t create_time;
|
||||
};
|
||||
|
||||
/* Used in conjunction with tsd for fast arena-related context lookup. */
|
||||
|
|
|
|||
|
|
@ -145,6 +145,9 @@ typedef struct arena_stats_s {
|
|||
|
||||
/* One element for each large size class. */
|
||||
malloc_large_stats_t lstats[NSIZES - NBINS];
|
||||
|
||||
/* Arena uptime. */
|
||||
nstime_t uptime;
|
||||
} arena_stats_t;
|
||||
|
||||
#endif /* JEMALLOC_INTERNAL_STATS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue