diff options
author | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 14:22:19 +0000 |
---|---|---|
committer | teravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-16 14:22:19 +0000 |
commit | 55cd5b803430afdc255356bbaef6575230242298 (patch) | |
tree | e6f903ce12685eeeb11cbf078a5ca2dc009a7c2b /ppapi/api/private | |
parent | b6f29dc035f5b31524db93683babf9366275626e (diff) | |
download | chromium_src-55cd5b803430afdc255356bbaef6575230242298.zip chromium_src-55cd5b803430afdc255356bbaef6575230242298.tar.gz chromium_src-55cd5b803430afdc255356bbaef6575230242298.tar.bz2 |
Pepper: Move more UMA stuff out of trusted plugin.
This is yet another pretty simple change just lifting more lines out of the
trusted plugin. I added a method to PPB_NaCl_Private that's safe to call from
a background thread (there are other methods that are safe as well) to keep the
call sites simple.
BUG=239656
R=dmichael@chromium.org
Review URL: https://codereview.chromium.org/331973002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277424 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/private')
-rw-r--r-- | ppapi/api/private/ppb_nacl_private.idl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ppapi/api/private/ppb_nacl_private.idl b/ppapi/api/private/ppb_nacl_private.idl index 34f47e8..9a94214 100644 --- a/ppapi/api/private/ppb_nacl_private.idl +++ b/ppapi/api/private/ppb_nacl_private.idl @@ -435,4 +435,10 @@ interface PPB_NaCl_Private { void ReportSelLdrStatus([in] PP_Instance instance, [in] int32_t load_status, [in] int32_t max_status); + + /* Logs time taken by an operation to UMA histograms. + * This function is safe to call on any thread. + */ + void LogTranslateTime([in] str_t histogram_name, + [in] int64_t time_us); }; |