| Index: ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
|
| diff --git a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
|
| index 321878b9ef7f4c3fa16e17400ced60d91787635a..20b3d85ff044e636015433e881d856b00c2ec8d7 100644
|
| --- a/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
|
| +++ b/ppapi/native_client/src/trusted/plugin/pnacl_coordinator.h
|
| @@ -116,6 +116,11 @@ class PnaclCoordinator: public CallbackSource<FileStreamData> {
|
| // have been compiled.
|
| pp::CompletionCallback GetCompileProgressCallback(int64_t bytes_compiled);
|
|
|
| + // Return a callback that should be notified when an interesting UMA timing
|
| + // is ready to be reported.
|
| + pp::CompletionCallback GetUMATimeCallback(const nacl::string& event_name,
|
| + int64_t microsecs);
|
| +
|
| // Get the last known load progress.
|
| void GetCurrentProgress(int64_t* bytes_loaded, int64_t* bytes_total);
|
|
|
| @@ -175,6 +180,10 @@ class PnaclCoordinator: public CallbackSource<FileStreamData> {
|
| // Invoked when the read descriptor for nexe_file_ is created.
|
| void NexeReadDidOpen(int32_t pp_error);
|
|
|
| + // Invoked when a UMA timing measurement from the translate thread is ready.
|
| + void DoUMATimeMeasure(
|
| + int32_t pp_error, const nacl::string& event_name, int64_t microsecs);
|
| +
|
| // Keeps track of the pp_error upon entry to TranslateFinished,
|
| // for inspection after cleanup.
|
| int32_t translate_finish_error_;
|
|
|