mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
Print time of long running hook actions
We can use this to evaluate the usefulness of making hooks run in parallel. Review URL: https://chromiumcodereview.appspot.com/18851005 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@211446 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@@ -28,7 +28,7 @@ class GclientUtilsUnittest(GclientUtilBase):
|
||||
"""General gclient_utils.py tests."""
|
||||
def testMembersChanged(self):
|
||||
members = [
|
||||
'Annotated', 'AutoFlush', 'CheckCallAndFilter',
|
||||
'Annotated', 'AutoFlush', 'CheckCallAndFilter', 'CommandToStr',
|
||||
'CheckCallAndFilterAndHeader', 'Error', 'ExecutionQueue', 'FileRead',
|
||||
'FileWrite', 'FindFileUpwards', 'FindGclientRoot',
|
||||
'GetGClientRootAndEntries', 'GetEditor', 'IsDateRevision',
|
||||
@@ -37,9 +37,9 @@ class GclientUtilsUnittest(GclientUtilBase):
|
||||
'PrintableObject', 'RunEditor', 'GCLIENT_CHILDREN',
|
||||
'GCLIENT_CHILDREN_LOCK', 'GClientChildren',
|
||||
'SplitUrlRevision', 'SyntaxErrorToError', 'UpgradeToHttps', 'Wrapper',
|
||||
'WorkItem', 'codecs', 'lockedmethod', 'logging', 'os', 'Queue', 're',
|
||||
'rmtree', 'safe_makedirs', 'stat', 'subprocess', 'subprocess2', 'sys',
|
||||
'tempfile', 'threading', 'time', 'urlparse',
|
||||
'WorkItem', 'codecs', 'lockedmethod', 'logging', 'os', 'pipes', 'Queue',
|
||||
're', 'rmtree', 'safe_makedirs', 'stat', 'subprocess', 'subprocess2',
|
||||
'sys', 'tempfile', 'threading', 'time', 'urlparse',
|
||||
]
|
||||
# If this test fails, you should add the relevant test.
|
||||
self.compareMembers(gclient_utils, members)
|
||||
|
||||
Reference in New Issue
Block a user