diff options
author | Jan Srnicek <jsrnicek@cisco.com> | 2017-09-12 08:22:07 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-09-12 06:48:17 +0000 |
commit | dbc30d321bd385e5cd5bce1e6f567ade9ca1aa25 (patch) | |
tree | 80620eb992e8ee12254b8162e369ceee469d07d0 /infra/footprint/footprint-api/src | |
parent | 61ae76644a2d68823aaeabf4c0310c1717f52236 (diff) |
HONEYCOMB-392 - Footprint measuring support
Change-Id: I079c8ceef84cda43159e1823fe42ad77cdc981e8
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
Diffstat (limited to 'infra/footprint/footprint-api/src')
-rw-r--r-- | infra/footprint/footprint-api/src/main/yang/footprint.yang | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/infra/footprint/footprint-api/src/main/yang/footprint.yang b/infra/footprint/footprint-api/src/main/yang/footprint.yang new file mode 100644 index 000000000..680f15c2a --- /dev/null +++ b/infra/footprint/footprint-api/src/main/yang/footprint.yang @@ -0,0 +1,28 @@ +module footprint { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:footprint"; + prefix "footprint"; + + revision "2017-08-30" { + description "HC model for requesting current memory consumption"; + } + + container memory-footprint-state { + config false; + + leaf footprint { + type uint32; + description "Memory footprint in kilobytes. Footprint is parsed as output of ps command, where RSS field is + read. + + RSS is the Resident Set Size and is used to show how much memory is allocated to that process and is in RAM. + It does not include memory that is swapped out. It does include memory from shared libraries + as long as the pages from those libraries are actually in memory. It does include all stack and heap memory."; + } + + leaf pid { + type uint32; + description "Process id of honeycomb"; + } + } +} |