summaryrefslogtreecommitdiff
path: root/src/libvmon/defs
AgeCommit message (Collapse)Author
10 dayslibvmon: introduce VMON_FLAG_NEGLECT_THREADS flagVito Caputo
--hide-threads needs a way to tell libvmon to both follow threads and neglect to actually sample them. Note this will still allocate the vmon_proc_t for every thread, but conserves in the open proc files department by not opening/reading everything other than the children proc file for threads - regardless of what other proc wants have been specified. So front-ends still need to traverse threads of processes, and if they want to collapse the children of threads as if they're all children of the threads' parent, that's up to the front-end to do so. In the vwm/vmon case, that's a detail for charts.c to handle, when --hide-threads is in effect. It will have to render the children of threads as if they're children of the threads' parent, to hide this clusterfuck from what's visible to the user.
2024-07-31*: %s/heirarch/hierarch/Vito Caputo
Mechnical fix of longstanding typo I'm tired of ignoring...
2021-09-09lbvmon: expose clock_gettime(CLOCK_BOOTTIME)Vito Caputo
Exposed as VMON_SYS_STAT_BOOTTIME, so part of VMON_WANT_SYS_STAT, in units of ticks to normalize with SYS_STAT_CPU* times. This also introduces vmon->ticks_per_sec, which callers can access as well for convenience since vmon_t is all public and this library doesn't aspire to keep anything private. It's initialized via sysconf(_SC_CLK_TCK) @ vmon_init().
2017-03-25libvmon: wrap X-Macro parser state in a structVito Caputo
This makes no functional difference, but silences warnings about unused variables when -Wall is enabled.
2017-03-25*: restore old indentation of switch casesVito Caputo
In the course of applying the new style over the rest of the code I decided it's obnoxiouos and prefer the old way of indenting the cases one level from the switch. I know it wastes horizontal space and can see the value of flattening the cases with the switch, but once you start having variables at the start of the switch body, and blocked cases, it just starts becoming quite unattractive without the indentation.
2017-03-21libvmon: style cleanupsVito Caputo
Bring libvmon code inline with the direction vwm has headed in terms of coding style. Entirely mechanical changes with one exception replacing a free()/=NULL idiom with try_free().
2016-09-09*: refactor all the thingsVito Caputo
Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles.
© All Rights Reserved