Index: build/android/pylib/symbols/elf_symbolizer.py |
diff --git a/build/android/pylib/symbols/elf_symbolizer.py b/build/android/pylib/symbols/elf_symbolizer.py |
index 08c02d5a8ac056d8f2cf5d79f6da5e8177f8d09c..53431e873bbac6b3f569dd2bcb399d09b5fcc481 100644 |
--- a/build/android/pylib/symbols/elf_symbolizer.py |
+++ b/build/android/pylib/symbols/elf_symbolizer.py |
@@ -13,7 +13,7 @@ import re |
import subprocess |
import sys |
import threading |
- |
+import time |
Primiano Tucci (use gerrit)
2014/09/02 17:10:52
Nit: you need an extra newline below.
Daniel Bratell
2014/09/02 19:48:40
Done.
|
# addr2line builds a possibly infinite memory cache that can exhaust |
# the computer's memory if allowed to grow for too long. This constant |
@@ -184,12 +184,17 @@ class ELFSymbolizer(object): |
def _CreateDisambiguationTable(self): |
""" Non-unique file names will result in None entries""" |
+ start_time = time.time() |
+ logging.info('Collecting information about available source files...') |
self.disambiguation_table = {} |
for root, _, filenames in os.walk(self.source_root_path): |
for f in filenames: |
self.disambiguation_table[f] = os.path.join(root, f) if (f not in |
self.disambiguation_table) else None |
+ logging.info('Finished collecting information about ' |
+ 'possible files (took %.1f s).', |
+ (time.time() - start_time)) |
class Addr2Line(object): |