##// END OF EJS Templates
tests: add some helpful `|| cat` bits to test-profile.t...
Augie Fackler -
r40517:4e6ffcb5 default
parent child Browse files
Show More
@@ -86,22 +86,22 b' statistical profiler works'
86
86
87 Various statprof formatters work
87 Various statprof formatters work
88
88
89 $ hg --profile --config profiling.statformat=byline sleep 2>../out
89 $ hg --profile --config profiling.statformat=byline sleep 2>../out || cat ../out
90 $ head -n 3 ../out
90 $ head -n 3 ../out
91 % cumulative self
91 % cumulative self
92 time seconds seconds name
92 time seconds seconds name
93 * sleepext.py:*:sleep (glob)
93 * sleepext.py:*:sleep (glob)
94 $ cat ../out | statprofran
94 $ cat ../out | statprofran
95
95
96 $ hg --profile --config profiling.statformat=bymethod sleep 2>../out
96 $ hg --profile --config profiling.statformat=bymethod sleep 2>../out || cat ../out
97 $ head -n 1 ../out
97 $ head -n 1 ../out
98 % cumulative self
98 % cumulative self
99 $ cat ../out | statprofran
99 $ cat ../out | statprofran
100
100
101 $ hg --profile --config profiling.statformat=hotpath sleep 2>../out
101 $ hg --profile --config profiling.statformat=hotpath sleep 2>../out || cat ../out
102 $ cat ../out | statprofran
102 $ cat ../out | statprofran
103
103
104 $ hg --profile --config profiling.statformat=json sleep 2>../out
104 $ hg --profile --config profiling.statformat=json sleep 2>../out || cat ../out
105 $ cat ../out
105 $ cat ../out
106 \[\[-?\d+.* (re)
106 \[\[-?\d+.* (re)
107
107
General Comments 0
You need to be logged in to leave comments. Login now