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

Unified Diff: pydir/szbuild.py

Issue 1147023007: Subzero: Basic Block Profiler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Named constants; fflush; clang-format. Created 5 years, 6 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 | « pydir/build-runtime.py ('k') | runtime/szrt_profiler.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pydir/szbuild.py
diff --git a/pydir/szbuild.py b/pydir/szbuild.py
index c962d4cfab443a37383ae5986882651819040266..1e19cf31abcb2fda8f23ffcb30577ff4553bb46b 100755
--- a/pydir/szbuild.py
+++ b/pydir/szbuild.py
@@ -84,7 +84,10 @@ def AddOptionalArgs(argparser):
choices=['obj', 'asm', 'iasm'],
help='Output file type. Default %(default)s.')
argparser.add_argument('--sandbox', dest='sandbox', action='store_true',
- help='Enabled sandboxing in the translator')
+ help='Enable sandboxing in the translator')
+ argparser.add_argument('--enable-block-profile',
+ dest='enable_block_profile', action='store_true',
+ help='Enable basic block profiling.')
argparser.add_argument('--verbose', '-v', dest='verbose',
action='store_true',
help='Display some extra debugging output')
@@ -217,6 +220,8 @@ def ProcessPexe(args, pexe, exe):
'-ffunction-sections',
'-fdata-sections'] if hybrid else []) +
(['-sandbox'] if args.sandbox else []) +
+ (['-enable-block-profile'] if
+ args.enable_block_profile and not args.sandbox else []) +
args.sz_args +
[pexe],
echo=args.verbose)
« no previous file with comments | « pydir/build-runtime.py ('k') | runtime/szrt_profiler.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698