projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git]
/
src
/
base
/
run_loop.cc
diff --git
a/src/base/run_loop.cc
b/src/base/run_loop.cc
index
8344aa4
..
e92e110
100644
(file)
--- a/
src/base/run_loop.cc
+++ b/
src/base/run_loop.cc
@@
-5,6
+5,7
@@
#include "base/run_loop.h"
#include "base/bind.h"
#include "base/run_loop.h"
#include "base/bind.h"
+#include "base/tracked_objects.h"
#if defined(OS_WIN)
#include "base/message_loop/message_pump_dispatcher.h"
#if defined(OS_WIN)
#include "base/message_loop/message_pump_dispatcher.h"
@@
-46,7
+47,13
@@
RunLoop::~RunLoop() {
void RunLoop::Run() {
if (!BeforeRun())
return;
void RunLoop::Run() {
if (!BeforeRun())
return;
+
+ // Use task stopwatch to exclude the loop run time from the current task, if
+ // any.
+ tracked_objects::TaskStopwatch stopwatch;
loop_->RunHandler();
loop_->RunHandler();
+ stopwatch.Stop();
+
AfterRun();
}
AfterRun();
}