forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update orderfile pipeline to better deal with aliased methods.
This addresses two outstanding issues: 1. Methods which appear in multiple sections due to aliasing (eg constructors). 2. Partial methods and clones generated by the compiler for various optimizations. Most of these changes were previously reviewed in https://codereview.chromium.org/1155713003/ and https://codereview.chromium.org/1165603003/ but then reverted in commits cfbd6c2, 1d5e730, a57cac2. BUG=460906,497247 Review URL: https://codereview.chromium.org/1177473002 Cr-Commit-Position: refs/heads/master@{#336777}
- Loading branch information
azarchs
authored and
Commit bot
committed
Jun 30, 2015
1 parent
aff93a2
commit cc60851
Showing
8 changed files
with
515 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/python | ||
# Copyright 2015 The Chromium Authors. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import unittest | ||
|
||
import cygprofile_utils | ||
|
||
|
||
class TestCygprofileUtils(unittest.TestCase): | ||
def testInvertMapping(self): | ||
inputMap = {'1': ['2', '3'], | ||
'4': ['2', '5']} | ||
self.assertEqual(cygprofile_utils.InvertMapping(inputMap), | ||
{'2': ['1', '4'], | ||
'3': ['1'], | ||
'5': ['4']}) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
Oops, something went wrong.