File tree 2 files changed +21
-0
lines changed
2 files changed +21
-0
lines changed Original file line number Diff line number Diff line change 201
201
- secure : " cFh8thThqEJLC98XKI5pfqflUzOlxsYPRW20AWRaYOOgYHPTiGWypTXiPbGSKaeAXTZoOA+DpQtEmefc0U6lt9dHc7a/MIaK6isFurjlnKYiLOeTruzyu1z7PWCeZ/jKXsU2RK/88DBtlNwfMdaMIeuKj14IVfpepPPL71ETbuk="
202
202
203
203
before_install :
204
+ # - ./src/ci/top.sh &
204
205
- zcat $HOME/docker/rust-ci.tar.gz | docker load || true
205
206
- mkdir -p $HOME/rustsrc
206
207
# FIXME(#46924): these two commands are required to enable IPv6,
@@ -290,6 +291,8 @@ after_failure:
290
291
# the failure was while updating it (as it may be in a bad state)
291
292
# https://github.com/travis-ci/travis-ci/issues/4472
292
293
before_cache :
294
+ # - echo "top statistics:"
295
+ # - cat /tmp/top.log
293
296
- docker history -q rust-ci |
294
297
grep -v missing |
295
298
xargs docker save |
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Copyright 2018 The Rust Project Developers. See the COPYRIGHT
3
+ # file at the top-level directory of this distribution and at
4
+ # http://rust-lang.org/COPYRIGHT.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
7
+ # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
8
+ # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
9
+ # option. This file may not be copied, modified, or distributed
10
+ # except according to those terms.
11
+
12
+ while ` sleep 30`
13
+ do
14
+ # get tops summary and print it into a logfile every 30 secs
15
+ # run top in batch mode (b), skip idle processes (i) and quite after first output (n 1)
16
+ top -ibn 1 | head -n4 | tr " \n" " " | tee -a /tmp/top.log
17
+ echo " " | tee -a /tmp/top.log
18
+ done
You can’t perform that action at this time.
0 commit comments