Stay organized with collections
Save and categorize content based on your preferences.
memory_advice::IMetricsProvider
This is an abstract class.#include <metrics_provider.h>
Provides memory info from various metrics.
Summary
Inheritance
Direct Known Subclasses:
memory_advice::DefaultMetricsProvider
Public attributes
|
metrics_categories_ = {
{"meminfo", &IMetricsProvider::GetMeminfoValues},
{"status", &IMetricsProvider::GetStatusValues},
{"proc", &IMetricsProvider::GetProcValues},
{"debug", &IMetricsProvider::GetDebugValues},
{"MemoryInfo", &IMetricsProvider::GetActivityManagerMemoryInfo},
{"ActivityManager", &IMetricsProvider::GetActivityManagerValues}}
|
std::map< std::string, MetricsFunction >
A map matching metrics category names to their functions.
|
Public functions
|
GetActivityManagerMemoryInfo()=0
|
virtual Json::object
Get a list of memory metrics available from ActivityManager::getMemoryInfo().
|
GetActivityManagerValues()=0
|
virtual Json::object
Get a list of memory metrics available from ActivityManager.
|
GetDebugValues()=0
|
virtual Json::object
Get a list of memory metrics available from android.os.Debug.
|
GetMeminfoValues()=0
|
virtual Json::object
Get a list of memory metrics stored in /proc/meminfo.
|
GetProcValues()=0
|
virtual Json::object
Get a list of various memory metrics stored in /proc/{pid} folder.
|
GetStatusValues()=0
|
virtual Json::object
Get a list of memory metrics stored in /proc/{pid}/status.
|
Public types
MetricsFunction
Json::object(IMetricsProvider::* MetricsFunction)()
Public attributes
metrics_categories_
std::map< std::string, MetricsFunction > metrics_categories_ = {
{"meminfo", &IMetricsProvider::GetMeminfoValues},
{"status", &IMetricsProvider::GetStatusValues},
{"proc", &IMetricsProvider::GetProcValues},
{"debug", &IMetricsProvider::GetDebugValues},
{"MemoryInfo", &IMetricsProvider::GetActivityManagerMemoryInfo},
{"ActivityManager", &IMetricsProvider::GetActivityManagerValues}}
A map matching metrics category names to their functions.
Public functions
GetActivityManagerMemoryInfo
virtual Json::object GetActivityManagerMemoryInfo()=0
Get a list of memory metrics available from ActivityManager::getMemoryInfo().
GetActivityManagerValues
virtual Json::object GetActivityManagerValues()=0
Get a list of memory metrics available from ActivityManager.
GetDebugValues
virtual Json::object GetDebugValues()=0
Get a list of memory metrics available from android.os.Debug.
GetMeminfoValues
virtual Json::object GetMeminfoValues()=0
Get a list of memory metrics stored in /proc/meminfo.
GetProcValues
virtual Json::object GetProcValues()=0
Get a list of various memory metrics stored in /proc/{pid} folder.
GetStatusValues
virtual Json::object GetStatusValues()=0
Get a list of memory metrics stored in /proc/{pid}/status.
~IMetricsProvider
virtual ~IMetricsProvider()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-11-27 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-27 UTC."],[],[],null,["# memory_advice::IMetricsProvider Class Reference\n\nmemory_advice::IMetricsProvider\n===============================\n\n**This is an abstract class.** \n\n`#include \u003cmetrics_provider.h\u003e`\n\nProvides memory info from various metrics.\n\nSummary\n-------\n\n### Inheritance\n\nDirect Known Subclasses:[memory_advice::DefaultMetricsProvider](/reference/games/memory-advice/classmemory/advice-1-1-default-metrics-provider)\n\n| ### Constructors and Destructors ||\n|---|---|\n| [~IMetricsProvider](#classmemory__advice_1_1_i_metrics_provider_1a01af5d4f622f91eba16af2da9eea730a)`()` ||\n\n| ### Public types ||\n|--------------------------------------------------------------------------------------------------------|--------------------------------------------|\n| [MetricsFunction](#classmemory__advice_1_1_i_metrics_provider_1a61ec9ae48f6476df529cb2dbf97a3847)`)()` | typedef `Json::object(IMetricsProvider::*` |\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| [metrics_categories_](#classmemory__advice_1_1_i_metrics_provider_1aae86dbbbd5cb5bfcd80f1da6a8f733c1)` = { {\"meminfo\", &IMetricsProvider::GetMeminfoValues}, {\"status\", &IMetricsProvider::GetStatusValues}, {\"proc\", &IMetricsProvider::GetProcValues}, {\"debug\", &IMetricsProvider::GetDebugValues}, {\"MemoryInfo\", &IMetricsProvider::GetActivityManagerMemoryInfo}, {\"ActivityManager\", &IMetricsProvider::GetActivityManagerValues}}` | `std::map\u003c std::string, MetricsFunction \u003e` A map matching metrics category names to their functions. |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| [GetActivityManagerMemoryInfo](#classmemory__advice_1_1_i_metrics_provider_1ad52f9f79bdd178ce5057e7c3b4fdd82f)`()=0` | `virtual Json::object` Get a list of memory metrics available from ActivityManager::getMemoryInfo(). |\n| [GetActivityManagerValues](#classmemory__advice_1_1_i_metrics_provider_1ad658b227be17b7c6c459194f9fb3d468)`()=0` | `virtual Json::object` Get a list of memory metrics available from ActivityManager. |\n| [GetDebugValues](#classmemory__advice_1_1_i_metrics_provider_1a2cc354d67657220c8e178d96a12a8420)`()=0` | `virtual Json::object` Get a list of memory metrics available from android.os.Debug. |\n| [GetMeminfoValues](#classmemory__advice_1_1_i_metrics_provider_1ac95f311b073ac298bd0ec4f508f240bd)`()=0` | `virtual Json::object` Get a list of memory metrics stored in /proc/meminfo. |\n| [GetProcValues](#classmemory__advice_1_1_i_metrics_provider_1a9528e814c2f16d0ff2347809951baed6)`()=0` | `virtual Json::object` Get a list of various memory metrics stored in /proc/{pid} folder. |\n| [GetStatusValues](#classmemory__advice_1_1_i_metrics_provider_1a42606e57dbf245169faa9b79ed7b9216)`()=0` | `virtual Json::object` Get a list of memory metrics stored in /proc/{pid}/status. |\n\nPublic types\n------------\n\n### MetricsFunction\n\n```scdoc\nJson::object(IMetricsProvider::* MetricsFunction)()\n``` \n\nPublic attributes\n-----------------\n\n### metrics_categories_\n\n```scdoc\nstd::map\u003c std::string, MetricsFunction \u003e metrics_categories_ = {\n {\"meminfo\", &IMetricsProvider::GetMeminfoValues},\n {\"status\", &IMetricsProvider::GetStatusValues},\n {\"proc\", &IMetricsProvider::GetProcValues},\n {\"debug\", &IMetricsProvider::GetDebugValues},\n {\"MemoryInfo\", &IMetricsProvider::GetActivityManagerMemoryInfo},\n {\"ActivityManager\", &IMetricsProvider::GetActivityManagerValues}}\n``` \nA map matching metrics category names to their functions.\n\nPublic functions\n----------------\n\n### GetActivityManagerMemoryInfo\n\n```text\nvirtual Json::object GetActivityManagerMemoryInfo()=0\n``` \nGet a list of memory metrics available from ActivityManager::getMemoryInfo(). \n\n### GetActivityManagerValues\n\n```text\nvirtual Json::object GetActivityManagerValues()=0\n``` \nGet a list of memory metrics available from ActivityManager. \n\n### GetDebugValues\n\n```text\nvirtual Json::object GetDebugValues()=0\n``` \nGet a list of memory metrics available from android.os.Debug. \n\n### GetMeminfoValues\n\n```text\nvirtual Json::object GetMeminfoValues()=0\n``` \nGet a list of memory metrics stored in /proc/meminfo. \n\n### GetProcValues\n\n```text\nvirtual Json::object GetProcValues()=0\n``` \nGet a list of various memory metrics stored in /proc/{pid} folder. \n\n### GetStatusValues\n\n```text\nvirtual Json::object GetStatusValues()=0\n``` \nGet a list of memory metrics stored in /proc/{pid}/status. \n\n### \\~IMetricsProvider\n\n```text\nvirtual ~IMetricsProvider()\n```"]]