Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1733)

Unified Diff: courgette/analyze_stress_test

Issue 22935012: Factored common functionality out of the Courgette stress test scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « courgette/analyze_mem_test ('k') | courgette/run_mem_test » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/analyze_stress_test
diff --git a/courgette/analyze_stress_test b/courgette/analyze_stress_test
index 338eb6e5f9c38a00674455b861f1d2705193a016..0c700eba59a638b6556a30fab79fbd5d2d2430a6 100755
--- a/courgette/analyze_stress_test
+++ b/courgette/analyze_stress_test
@@ -6,21 +6,9 @@
# Produce metrics analyzing the output of a stress test
-set -e
-
-error() {
- echo "error: ${@}" >&2
-}
+source "$(dirname ${0})/stress_test_common"
-# Given a token, search for and count the instances of lines from the
-# logfile that start with the token.
-count_result() {
- if [ ! -z "${1}" ]; then
- echo $(cat "${log}" | grep "^${1} " | wc -l)
- else
- echo 0
- fi
-}
+set -e
# Given a token, search for and compute the percentiles from logfile.
compute_percentiles() {
« no previous file with comments | « courgette/analyze_mem_test ('k') | courgette/run_mem_test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698