memory.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. syntax = "proto3";
  2. package envoy.admin.v2alpha;
  3. import "udpa/annotations/status.proto";
  4. option java_package = "io.envoyproxy.envoy.admin.v2alpha";
  5. option java_outer_classname = "MemoryProto";
  6. option java_multiple_files = true;
  7. option go_package = "github.com/envoyproxy/go-control-plane/envoy/admin/v2alpha";
  8. option (udpa.annotations.file_status).package_version_status = FROZEN;
  9. // [#protodoc-title: Memory]
  10. // Proto representation of the internal memory consumption of an Envoy instance. These represent
  11. // values extracted from an internal TCMalloc instance. For more information, see the section of the
  12. // docs entitled ["Generic Tcmalloc Status"](https://gperftools.github.io/gperftools/tcmalloc.html).
  13. // [#next-free-field: 7]
  14. message Memory {
  15. // The number of bytes allocated by the heap for Envoy. This is an alias for
  16. // `generic.current_allocated_bytes`.
  17. uint64 allocated = 1;
  18. // The number of bytes reserved by the heap but not necessarily allocated. This is an alias for
  19. // `generic.heap_size`.
  20. uint64 heap_size = 2;
  21. // The number of bytes in free, unmapped pages in the page heap. These bytes always count towards
  22. // virtual memory usage, and depending on the OS, typically do not count towards physical memory
  23. // usage. This is an alias for `tcmalloc.pageheap_unmapped_bytes`.
  24. uint64 pageheap_unmapped = 3;
  25. // The number of bytes in free, mapped pages in the page heap. These bytes always count towards
  26. // virtual memory usage, and unless the underlying memory is swapped out by the OS, they also
  27. // count towards physical memory usage. This is an alias for `tcmalloc.pageheap_free_bytes`.
  28. uint64 pageheap_free = 4;
  29. // The amount of memory used by the TCMalloc thread caches (for small objects). This is an alias
  30. // for `tcmalloc.current_total_thread_cache_bytes`.
  31. uint64 total_thread_cache = 5;
  32. // The number of bytes of the physical memory usage by the allocator. This is an alias for
  33. // `generic.total_physical_bytes`.
  34. uint64 total_physical_bytes = 6;
  35. }