| Index: content/renderer/renderer_main_platform_delegate_linux.cc
|
| diff --git a/content/renderer/renderer_main_platform_delegate_linux.cc b/content/renderer/renderer_main_platform_delegate_linux.cc
|
| index 52b0ea245631c44e9df2439517f61b7e72f970d5..57845cf7797ae7cbbfc0d3c493e36180ae08a4a7 100644
|
| --- a/content/renderer/renderer_main_platform_delegate_linux.cc
|
| +++ b/content/renderer/renderer_main_platform_delegate_linux.cc
|
| @@ -8,8 +8,10 @@
|
| #include <sys/stat.h>
|
|
|
| #include "base/command_line.h"
|
| +#include "base/debug/trace_memory.h"
|
| #include "base/file_util.h"
|
| #include "base/logging.h"
|
| +#include "base/message_loop.h"
|
| #include "content/common/sandbox_linux.h"
|
| #include "content/public/common/content_switches.h"
|
| #include "content/public/common/sandbox_init.h"
|
| @@ -34,9 +36,14 @@ void RendererMainPlatformDelegate::PlatformInitialize() {
|
| if (command_line.HasSwitch(switches::kEnableVtune))
|
| vTune::InitializeVtuneForV8();
|
| #endif
|
| +
|
| + // TODO(jamescook): Only start this when tracing is flipped on.
|
| + base::TraceMemoryStart();
|
| +
|
| }
|
|
|
| void RendererMainPlatformDelegate::PlatformUninitialize() {
|
| + base::TraceMemoryStop();
|
| }
|
|
|
| bool RendererMainPlatformDelegate::InitSandboxTests(bool no_sandbox) {
|
|
|