Chromium Code Reviews| Index: Source/modules/performance/WorkerPerformance.cpp |
| diff --git a/Source/modules/performance/WorkerPerformance.cpp b/Source/modules/performance/WorkerPerformance.cpp |
| index fe20882c6aa3540c37ea9e45c804140f5711bbac..394fae19e9dcda14275974088d910e68a2fd6e34 100644 |
| --- a/Source/modules/performance/WorkerPerformance.cpp |
| +++ b/Source/modules/performance/WorkerPerformance.cpp |
| @@ -31,6 +31,7 @@ |
| #include "config.h" |
| #include "modules/performance/WorkerPerformance.h" |
| +#include "core/timing/MemoryInfo.h" |
| #include "core/workers/DedicatedWorkerGlobalScope.h" |
| #include "core/workers/WorkerGlobalScope.h" |
| #include "wtf/CurrentTime.h" |
| @@ -54,4 +55,10 @@ double WorkerPerformance::now(ExecutionContext* context) const |
| return 1000.0 * (monotonicallyIncreasingTime() - workerGlobalScope->timeOrigin()); |
| } |
| +PassRefPtrWillBeRawPtr<MemoryInfo> WorkerPerformance::memory() const |
| +{ |
| + // FIXME: We shall not create a new object every time. |
|
abarth-chromium
2014/04/23 18:04:37
Rather than propagating this FIXME, would you be w
Pan
2014/05/06 14:24:25
I'd like to fix it in another change.
|
| + return MemoryInfo::create(); |
| +} |
| + |
| } // namespace WebCore |