Mercurial > hg-stable
comparison tests/test-profile @ 8023:fd9debb3ea1b
profiling: Adding a profiling.format config variable
Allows defining other output formats for profiling.
If an invalid format is given, output a warning and ignore it.
For now, only the standard 'text' value is supported.
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Thu, 02 Apr 2009 16:01:30 +0900 |
parents | 4f3fdfaa3874 |
children | 9a1b86cfd29e |
comparison
equal
deleted
inserted
replaced
8022:4f3fdfaa3874 | 8023:fd9debb3ea1b |
---|---|
13 | 13 |
14 hg --profile --config profiling.output=../out st 2>&1 \ | 14 hg --profile --config profiling.output=../out st 2>&1 \ |
15 || echo --profile + output to file failed | 15 || echo --profile + output to file failed |
16 grep CallCount < ../out > /dev/null \ | 16 grep CallCount < ../out > /dev/null \ |
17 || echo wrong --profile output when saving to a file | 17 || echo wrong --profile output when saving to a file |
18 | |
19 hg --profile --config profiling.format=text st 2>&1 \ | |
20 | grep CallCount > /dev/null || echo --profile format=text failed | |
18 fi | 21 fi |