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

Unified Diff: tools/traceline/traceline/scripts/filter_split.sh

Issue 118377: Some improvements and bug fixes to traceline. (Closed)
Patch Set: for in file Created 11 years, 6 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 | « tools/traceline/traceline/main.cc ('k') | tools/traceline/traceline/scripts/split.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/traceline/traceline/scripts/filter_split.sh
diff --git a/tools/traceline/traceline/scripts/filter_split.sh b/tools/traceline/traceline/scripts/filter_split.sh
new file mode 100644
index 0000000000000000000000000000000000000000..19a28917e8fb56c825248e5188383bf727b82f5c
--- /dev/null
+++ b/tools/traceline/traceline/scripts/filter_split.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Runs filter_short on the individual splits of a json file, and puts
+# everything back together into a single output json. This is useful when you
+# want to filter a large json file that would otherwise OOM Python.
+
+echo "parseEvents([" > totalsplit
+for f in split.*; do
+ python scripts/filter_short.py "$f" | tail -n +2 | head -n -1 >> totalsplit
+done
+echo "]);" >> totalsplit
« no previous file with comments | « tools/traceline/traceline/main.cc ('k') | tools/traceline/traceline/scripts/split.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698