diff options
author | zhizhouy <zhizhouy@google.com> | 2020-04-06 17:17:55 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-04-07 11:00:50 +0000 |
commit | 47158bff1d1fb6e405548538b4a053e5b51d023e (patch) | |
tree | fb38ebf54d7aa284ae7014d06d10baad5516455c /deprecated/mem_tests/utils.py | |
parent | 85cd836b985d14c8332dc3b0a1241f06af48b5cd (diff) | |
download | toolchain-utils-47158bff1d1fb6e405548538b4a053e5b51d023e.tar.gz |
toolchain-utils: remove deprecated scripts
Per NextAction date in crbug.com/1051236, we would like to remove all
deprecated scripts in toolchain-utils for cleanup.
BUG=chromium:1051236
TEST=None
Change-Id: I06e4f3c39812d33daf47271325b5775c93929ab8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2137942
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Zhizhou Yang <zhizhouy@google.com>
Auto-Submit: Zhizhou Yang <zhizhouy@google.com>
Commit-Queue: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'deprecated/mem_tests/utils.py')
-rw-r--r-- | deprecated/mem_tests/utils.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/deprecated/mem_tests/utils.py b/deprecated/mem_tests/utils.py deleted file mode 100644 index 38bd89ca..00000000 --- a/deprecated/mem_tests/utils.py +++ /dev/null @@ -1,22 +0,0 @@ -"""Utility functions for the memory tests. -""" - -from datetime import datetime - - -def compute_total_diff(line, base_time): - """ - Computes the difference in time the line was recorded from the base time. - - An example of a line is: - [4688:4688:0701/010151:ERROR:perf_provider_chromeos.cc(228)]... - - Here, the month is 07, the day is 01 and the time is 01:01:51. - - line- the line that contains the time the record was taken - base_time- the base time to measure our timestamp from - """ - date = line.strip().split(':')[2].split('/') - timestamp = datetime(2014, int(date[0][0:2]), int(date[0][2:4]), - int(date[1][0:2]), int(date[1][2:4]), int(date[1][4:6])) - return (timestamp - base_time).total_seconds() |