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

Side by Side Diff: tools/valgrind/valgrind_test.py

Issue 159252: Part 2 of secret plan to speed up valgrind log processing.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2008 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 help="also show less blatant leaks") 336 help="also show less blatant leaks")
337 parser.add_option("", "--track_origins", action="store_true", 337 parser.add_option("", "--track_origins", action="store_true",
338 default=False, 338 default=False,
339 help="Show whence uninitialized bytes came. 30% slower.") 339 help="Show whence uninitialized bytes came. 30% slower.")
340 340
341 def ToolSpecificFlags(self): 341 def ToolSpecificFlags(self):
342 ret = ["--leak-check=full"] 342 ret = ["--leak-check=full"]
343 343
344 if self._options.show_all_leaks: 344 if self._options.show_all_leaks:
345 ret += ["--show-reachable=yes"]; 345 ret += ["--show-reachable=yes"];
346 else:
347 ret += ["--show-possible=no"];
346 348
347 if self._options.track_origins: 349 if self._options.track_origins:
348 ret += ["--track-origins=yes"]; 350 ret += ["--track-origins=yes"];
349 351
350 """Either generate suppressions or load them. 352 """Either generate suppressions or load them.
351 TODO(dkegel): enhance valgrind to support generating 353 TODO(dkegel): enhance valgrind to support generating
352 suppressions in xml mode. See 354 suppressions in xml mode. See
353 http://bugs.kde.org/show_bug.cgi?id=191189 355 http://bugs.kde.org/show_bug.cgi?id=191189
354 """ 356 """
355 if self._generate_suppressions: 357 if self._generate_suppressions:
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 456
455 if __name__ == "__main__": 457 if __name__ == "__main__":
456 if sys.argv.count("-v") > 0 or sys.argv.count("--verbose") > 0: 458 if sys.argv.count("-v") > 0 or sys.argv.count("--verbose") > 0:
457 google.logging_utils.config_root(logging.DEBUG) 459 google.logging_utils.config_root(logging.DEBUG)
458 else: 460 else:
459 google.logging_utils.config_root() 461 google.logging_utils.config_root()
460 # TODO(timurrrr): valgrind tools may use -v/--verbose as well 462 # TODO(timurrrr): valgrind tools may use -v/--verbose as well
461 463
462 ret = RunTool(sys.argv) 464 ret = RunTool(sys.argv)
463 sys.exit(ret) 465 sys.exit(ret)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698