Commit Graph

15 Commits (61902bc2a547ebdfae466db732821d3584bedcae)

Author SHA1 Message Date
Shrug 42 6a38ce2069 fix json tags
Shrug 42 12fad953c1 added additional linux meminfo fields
shirou 1ba5059aca [memory] Linux: add document url about OverCommiting.
shirou a1564d2e89
Merge pull request #478 from DataDog/olivielpeau/commit-vm-stats
[mem] Add commit-related stats to VirtualMemoryStat on Linux
Laurie Clark-Michalek 413cb32b6c Use static initialisation for invoke instances, instead of init funcs
The order of init function execution is dependant on the order that the
source files are passed to the compiler. This causes issues when
building under other build systems, such as bazel or buck, as they are
not guarenteed to maintain the same file order as the default go tool.
Olivier Vielpeau 5b52fbbea5 [mem] Add commit-related stats to VirtualMemoryStat on Linux
Maxime Mouial 4a1d5da977 Add 'SwapCached' to the VirtualMemoryStat informations on linux
Maxime Mouial 44e27c6972 Add Slab, Shared and PageTables metric for VirtualMemory under linux
kthommandra 1fd3a4dbad Added the writeback, dirty and writebacktmp fields from /proc/meminfo on Linux
Shirou WAKAYAMA 57f6aebc7e add Timeout to invoke command and use common.Invoke refs: #201
Shirou WAKAYAMA 4bb84648bf JSON representation is renamed to fit Google JSON style, camelCase.
Johan Walles 4438159155 Document + add tests for for mem.VirtualMemory()
This change changes and documents the (previously undocumented) behavior of Used
to "RAM used by programs".

We also remove the undocumented and unused Shared field of that struct.

So with this change in place, the VirtualMemoryStruct contains:
* three human-consumable fields for Total, Used and Available memory
* one human-consumable UsedPercentage field
* a number of kernel specific fields
Shirou WAKAYAMA 13cd195a7e change package name.
Shirou WAKAYAMA 16de570414 merge 039b9defab
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24