Index: presubmit_support.py |
diff --git a/presubmit_support.py b/presubmit_support.py |
index 0abd4219102d630e55fcf0959c73dc8cf5193ad3..4baee778831d229386738d1a42d1a3b2b5ebef88 100755 |
--- a/presubmit_support.py |
+++ b/presubmit_support.py |
@@ -311,6 +311,8 @@ class InputApi(object): |
# InputApi.platform is the platform you're currently running on. |
self.platform = sys.platform |
+ self.cpu_count = multiprocessing.cpu_count() |
+ |
# The local path of the currently-being-processed presubmit script. |
self._current_presubmit_path = os.path.dirname(presubmit_path) |