This module defines the Web App Memory APIs provided by the PMS stability-daemon.
These APIs allow web applications to query their real-time memory usage, memory limit,
and remaining memory budget, and to register a callback that fires when the memory
usage exceeds the allowed limit.
readonlyPmsManagerpms
PMS API namespace Since : 10.0
2.2 PmsManager
Provides methods for PMS Web App Memory functionalities.
These APIs query the stability-daemon's in-memory process monitoring data
for registered web applications.
[NoInterfaceObject] interface PmsManager {
DOMString getVersion();
long getWebAppMemoryUsage();
long getWebAppMemoryLimit();
void setMemoryUsageCallback(MemoryUsageCallback callback);
void unsetMemoryUsageCallback();
};
Since : 10.0
Methods
getVersion
Retrieves the version of the PMS API.
DOMString getVersion();
Product : TV, B2B
Privilege Level : Public
Privilege : http://tizen.org/privilege/system
Return Value :
DOMString : Version string of the PMS API
Since : 10.0
Code Example :
try {
var ver = webapis.pms.getVersion();
console.log("PMS API version: " + ver);
} catch (e) {
console.log(" Error: " + e.message);
}
getWebAppMemoryUsage
Retrieves the current total memory usage of the calling web application.
The total memory is computed as RSS + Swap + GEM + GPU, all in KB.
long getWebAppMemoryUsage();
Product : TV, B2B
Privilege Level : Public
Privilege : http://tizen.org/privilege/system
Return Value :
long : Memory usage in KB
Exceptions :
WebAPIException
with error type InvalidValuesError, if the process name does not exist.
with error type SecurityError, if the application does not have the privilege to call this method.
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
developer.samsung.com, .samsung.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
Samsung Electronics
.samsung.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
Samsung Electronics
developer.samsung.com, google.account.samsung.com
Preferences Submitted
You have successfully updated your cookie preferences.