Changeset 212372 in webkit
- Timestamp:
- Feb 15, 2017, 9:58:05 AM (10 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/port/darwin.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r212368 r212372 1 2017-02-15 Jonathan Bedard <jbedard@apple.com> 2 3 webkitpy: Memoize app_identifier_from_bundle for efficiency, call parent class for _get_crash_log 4 https://bugs.webkit.org/show_bug.cgi?id=168329 5 <rdar://problem/30518832> 6 7 Reviewed by Daniel Bates. 8 9 When testing on device, app_identifier_from_bundle is repeatedly called but the return value will 10 never change given the same input arguments. Memoize function for efficiency. 11 12 * Scripts/webkitpy/port/darwin.py: Add memoized import. 13 (DarwinPort): 14 (DarwinPort.app_identifier_from_bundle): Memoize to avoid extra executions of PlistBuddy. 15 16 1 17 2017-02-15 Jonathan Bedard <jbedard@apple.com> 2 18 -
trunk/Tools/Scripts/webkitpy/port/darwin.py
r212368 r212372 24 24 import os 25 25 26 from webkitpy.common.memoized import memoized 26 27 from webkitpy.common.system.crashlogs import CrashLogs 27 28 from webkitpy.common.system.executive import ScriptError … … 175 176 return fallback 176 177 178 @memoized 177 179 def app_identifier_from_bundle(self, app_bundle): 178 180 plist_path = self._filesystem.join(app_bundle, 'Info.plist')
Note:
See TracChangeset
for help on using the changeset viewer.