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

Unified Diff: tools/cygprofile/patch_orderfile.py

Issue 297063002: Fix patch_orderfile.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cygprofile/patch_orderfile.py
diff --git a/tools/cygprofile/patch_orderfile.py b/tools/cygprofile/patch_orderfile.py
index 17cde76b96e9960b9d7a5a1e97d8a2ab0598ec70..380e28a4316edfbede479ac4917ce88bdc9a2e68 100755
--- a/tools/cygprofile/patch_orderfile.py
+++ b/tools/cygprofile/patch_orderfile.py
@@ -111,7 +111,11 @@ for addr in addresses:
# print "current count: " + str(count)
(functions, size) = binary_search (addr, 0, len(uniqueAddrs))
total_size = total_size + size
+ prefixes = ['.text.', '.text.startup.', '.text.hot.', '.text.unlikely.']
for function in functions:
- print ".text." + function
- print ""
+ for prefix in prefixes:
+ print prefix + function
+
+# The following is needed otherwise Gold only applies a partial sort.
+print '.text.*'
sys.stderr.write ("total_size: " + str(total_size) + "\n")
« 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