Commit c0593a1f authored by yangguo's avatar yangguo Committed by Commit bot

Add perf test configuration to track memory use of context and isolate.

R=machenbach@chromium.org

Review URL: https://codereview.chromium.org/1075143002

Cr-Commit-Position: refs/heads/master@{#27738}
parent ff9eaef1
......@@ -53,6 +53,7 @@ shell_g
/test/benchmarks/kraken
/test/benchmarks/octane
/test/benchmarks/sunspider
/test/memory/snapshot.cc
/test/mozilla/CHECKED_OUT_VERSION
/test/mozilla/data
/test/mozilla/data.old
......
{
"name": "Memory",
"run_count": 5,
"units": "bytes",
"path" : ["."],
"binary": "mksnapshot",
"flags": ["snapshot.cc", "--profile-deserialization"],
"main": "",
"tests": [
{
"name": "ReservedMemoryIsolate",
"results_regexp": "(\\d+) bytes per isolate$"
},
{
"name": "ReservedMemoryContext",
"results_regexp": "(\\d+) bytes per context$"
},
{
"name": "SnapshotSizeStartup",
"results_regexp": "(\\d+) bytes for startup$"
},
{
"name": "SnapshotSizeStartup",
"results_regexp": "(\\d+) bytes for context$"
}
]
}
......@@ -411,8 +411,8 @@ def MakeGraph(suite, arch, parent):
if isinstance(parent, Runnable):
# Below a runnable can only be traces.
return Trace(suite, parent, arch)
elif suite.get("main"):
# A main file makes this graph runnable.
elif suite.get("main") is not None:
# A main file makes this graph runnable. Empty strings are accepted.
if suite.get("tests"):
# This graph has subgraphs (traces).
return Runnable(suite, parent, arch)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment