Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # valgrind_test.py | 6 # valgrind_test.py |
| 7 | 7 |
| 8 """Runs an exe through Valgrind and puts the intermediate files in a | 8 """Runs an exe through Valgrind and puts the intermediate files in a |
| 9 directory. | 9 directory. |
| 10 """ | 10 """ |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 842 # Un-comment to dump Dr.Memory events on error | 842 # Un-comment to dump Dr.Memory events on error |
| 843 #proc += ["-dr_ops", "-dumpcore_mask 0x8bff"] | 843 #proc += ["-dr_ops", "-dumpcore_mask 0x8bff"] |
| 844 | 844 |
| 845 # Un-comment to debug Dr.Memory | 845 # Un-comment to debug Dr.Memory |
| 846 #proc += ["-dr_ops", "-no_hide -msgbox_mask 15"] | 846 #proc += ["-dr_ops", "-no_hide -msgbox_mask 15"] |
| 847 | 847 |
| 848 if self._options.use_debug: | 848 if self._options.use_debug: |
| 849 proc += ["-debug"] | 849 proc += ["-debug"] |
| 850 | 850 |
| 851 proc += ["-logdir", common.NormalizeWindowsPath(self.log_dir)] | 851 proc += ["-logdir", common.NormalizeWindowsPath(self.log_dir)] |
| 852 proc += ["-batch", "-quiet", "-no_results_to_stderr"] | 852 |
| 853 # Use -no_summary to suppress DrMemory's summary and init-time | |
| 854 # notifications. We generate our own with drmemory_analyze.py. | |
| 855 proc += ["-batch", "-no_summary"] | |
|
Timur Iskhodzhanov
2011/11/22 19:13:59
this won't change the contents or the results.txt
Reid Kleckner (google)
2011/11/22 19:59:35
Yes, results.txt won't be affected.
| |
| 856 | |
| 857 # Un-comment to disable interleaved output. Will also suppress error | |
| 858 # messages normally printed to stderr. | |
| 859 #proc += ["-quiet", "-no_results_to_stderr"] | |
| 853 | 860 |
| 854 proc += ["-callstack_max_frames", "40"] | 861 proc += ["-callstack_max_frames", "40"] |
| 855 | 862 |
| 856 # make callstacks easier to read | 863 # make callstacks easier to read |
| 857 proc += ["-callstack_srcfile_prefix", | 864 proc += ["-callstack_srcfile_prefix", |
| 858 "build\\src,chromium\\src,crt_build\\self_x86"] | 865 "build\\src,chromium\\src,crt_build\\self_x86"] |
| 859 proc += ["-callstack_modname_hide", | 866 proc += ["-callstack_modname_hide", |
| 860 "*.exe,chrome.dll"] | 867 "*.exe,chrome.dll"] |
| 861 | 868 |
| 862 boring_callers = common.BoringCallers(mangled=False, use_re_wildcards=False) | 869 boring_callers = common.BoringCallers(mangled=False, use_re_wildcards=False) |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1138 platform_name = sys.platform + "(Unknown)" | 1145 platform_name = sys.platform + "(Unknown)" |
| 1139 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, | 1146 raise RuntimeError, "Unknown tool (tool=%s, platform=%s)" % (tool_name, |
| 1140 platform_name) | 1147 platform_name) |
| 1141 | 1148 |
| 1142 def CreateTool(tool): | 1149 def CreateTool(tool): |
| 1143 return ToolFactory().Create(tool) | 1150 return ToolFactory().Create(tool) |
| 1144 | 1151 |
| 1145 if __name__ == '__main__': | 1152 if __name__ == '__main__': |
| 1146 logging.error(sys.argv[0] + " can not be run from command line") | 1153 logging.error(sys.argv[0] + " can not be run from command line") |
| 1147 sys.exit(1) | 1154 sys.exit(1) |
| OLD | NEW |