Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Runs an exe through Valgrind and puts the intermediate files in a | 5 """Runs an exe through Valgrind and puts the intermediate files in a |
| 6 directory. | 6 directory. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 import datetime | 9 import datetime |
| 10 import glob | 10 import glob |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 931 | 931 |
| 932 # Un-comment to disable interleaved output. Will also suppress error | 932 # Un-comment to disable interleaved output. Will also suppress error |
| 933 # messages normally printed to stderr. | 933 # messages normally printed to stderr. |
| 934 #proc += ["-quiet", "-no_results_to_stderr"] | 934 #proc += ["-quiet", "-no_results_to_stderr"] |
| 935 | 935 |
| 936 proc += ["-callstack_max_frames", "40"] | 936 proc += ["-callstack_max_frames", "40"] |
| 937 | 937 |
| 938 # disable leak scan for now | 938 # disable leak scan for now |
| 939 proc += ["-no_count_leaks", "-no_leak_scan"] | 939 proc += ["-no_count_leaks", "-no_leak_scan"] |
| 940 | 940 |
| 941 # crbug.com/413215, no heap mismatch check for Windows release build binary | |
| 942 proc += ["-no_check_delete_mismatch"] | |
|
Derek Bruening
2014/09/16 17:14:02
You need to check that this is running on out/Rele
zhaoqin
2014/09/16 18:22:00
Done.
| |
| 943 | |
| 941 # make callstacks easier to read | 944 # make callstacks easier to read |
| 942 proc += ["-callstack_srcfile_prefix", | 945 proc += ["-callstack_srcfile_prefix", |
| 943 "build\\src,chromium\\src,crt_build\\self_x86"] | 946 "build\\src,chromium\\src,crt_build\\self_x86"] |
| 944 proc += ["-callstack_modname_hide", | 947 proc += ["-callstack_modname_hide", |
| 945 "*drmemory*,chrome.dll"] | 948 "*drmemory*,chrome.dll"] |
| 946 | 949 |
| 947 boring_callers = common.BoringCallers(mangled=False, use_re_wildcards=False) | 950 boring_callers = common.BoringCallers(mangled=False, use_re_wildcards=False) |
| 948 # TODO(timurrrr): In fact, we want "starting from .." instead of "below .." | 951 # TODO(timurrrr): In fact, we want "starting from .." instead of "below .." |
| 949 proc += ["-callstack_truncate_below", ",".join(boring_callers)] | 952 proc += ["-callstack_truncate_below", ",".join(boring_callers)] |
| 950 | 953 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1223 return Asan() | 1226 return Asan() |
| 1224 try: | 1227 try: |
| 1225 platform_name = common.PlatformNames()[0] | 1228 platform_name = common.PlatformNames()[0] |
| 1226 except common.NotImplementedError: | 1229 except common.NotImplementedError: |
| 1227 platform_name = sys.platform + "(Unknown)" | 1230 platform_name = sys.platform + "(Unknown)" |
| 1228 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, | 1231 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, |
| 1229 platform_name) | 1232 platform_name) |
| 1230 | 1233 |
| 1231 def CreateTool(tool): | 1234 def CreateTool(tool): |
| 1232 return ToolFactory().Create(tool) | 1235 return ToolFactory().Create(tool) |
| OLD | NEW |