- section() revamp

- Redirect STDERR for the collection part in both tools
- rm_tempdir in sigtrap
- A part of pt-mysql-summary still depended on the system being run,
  rather than the samples being read. Now it works properly.
This commit is contained in:
Brian Fraser fraserb@gmail.com
2012-04-02 19:25:17 -03:00
parent 6dbbd6de3b
commit c0dedd19bf
13 changed files with 159 additions and 95 deletions

View File

@@ -68,13 +68,13 @@ is \
is \
"$(section "A B C")" \
"# A#B#C ######################################################" \
"section replaces all spaces with #s"
"# A B C ######################################################" \
"section doesn't replaces spaces with #s"
is \
"$(section "A_B_C")" \
"# A B C ######################################################" \
"..and all underscores with spaces"
"# A#B#C#######################################################" \
"..but it does replace everything after and including the first underscore with #s"
# name_val

View File

@@ -36,7 +36,7 @@ my @files = glob("$dir/*");
is(
scalar @files,
14,
15,
"And leaves all files in there"
);

View File

@@ -353,3 +353,4 @@ pt-summary-internal-user hugmeir@localhost
pt-summary-internal-FNV_64 Unknown
pt-summary-internal-trigger_count 0
pt-summary-internal-symbols Yes
pt-summary-internal-pid_file_exists 1

View File

@@ -369,3 +369,4 @@ pt-summary-internal-user hugmeir@localhost
pt-summary-internal-FNV_64 Unknown
pt-summary-internal-trigger_count 0
pt-summary-internal-symbols Yes
pt-summary-internal-pid_file_exists

View File

@@ -282,3 +282,4 @@ pt-summary-internal-user msandbox@%
pt-summary-internal-FNV_64 Unknown
pt-summary-internal-trigger_count 0
pt-summary-internal-symbols Yes
pt-summary-internal-pid_file_exists 1

View File

@@ -282,3 +282,4 @@ pt-summary-internal-user msandbox@%
pt-summary-internal-FNV_64 Unknown
pt-summary-internal-trigger_count 6
pt-summary-internal-symbols No
pt-summary-internal-pid_file_exists 1

View File

@@ -360,3 +360,4 @@ pt-summary-internal-user msandbox@%
pt-summary-internal-FNV_64 Unknown
pt-summary-internal-trigger_count 6
pt-summary-internal-mysqld_executable_1 Yes
pt-summary-internal-pid_file_exists 1