Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Unified Diff: tracing/tracing/mre/map_single_trace.py

Issue 2353083003: [Tracing] Use 8gb of heap space for map_single_trace commandline (Closed)
Patch Set: Remove debugging code Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tracing/tracing/mre/map_single_trace_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/mre/map_single_trace.py
diff --git a/tracing/tracing/mre/map_single_trace.py b/tracing/tracing/mre/map_single_trace.py
index 4a8d2fdd24b5e0ab1f05acac64ea75e0a866a12a..2bbde42170fd7a2e75911b6bb534eaa5f87d6959 100644
--- a/tracing/tracing/mre/map_single_trace.py
+++ b/tracing/tracing/mre/map_single_trace.py
@@ -95,8 +95,11 @@ def MapSingleTrace(trace_handle,
js_args.append(json.dumps(extra_import_options))
res = vinn.RunFile(
- _MAP_SINGLE_TRACE_CMDLINE_PATH, source_paths=all_source_paths,
- js_args=js_args)
+ _MAP_SINGLE_TRACE_CMDLINE_PATH,
+ source_paths=all_source_paths,
+ js_args=js_args,
+ # Use 8gb heap space to make sure we don't OOM'ed on big trace.
+ v8_args=['--max-old-space-size=8192'])
if res.returncode != 0:
sys.stderr.write(res.stdout)
« no previous file with comments | « no previous file | tracing/tracing/mre/map_single_trace_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698