From: Steve Chew (stechew) Date: Wed, 18 Sep 2019 12:04:57 +0000 (-0400) Subject: Merge pull request #1741 in SNORT/snort3 from ~STECHEW/snort3:profiler_output to... X-Git-Tag: 3.0.0-262~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=388e98cac82aebe65e86e58e069648e460f861d8;p=thirdparty%2Fsnort3.git Merge pull request #1741 in SNORT/snort3 from ~STECHEW/snort3:profiler_output to master Squashed commit of the following: commit 623c678d5fc25492f98cd58c27e2c99cbb804552 Author: Steve Chew Date: Tue Sep 10 10:15:16 2019 -0400 profiler: Increase width of checks and alloc fields so values don't run together --- diff --git a/src/profiler/memory_profiler.cc b/src/profiler/memory_profiler.cc index 38a292e01..4ba53ef43 100644 --- a/src/profiler/memory_profiler.cc +++ b/src/profiler/memory_profiler.cc @@ -48,7 +48,7 @@ static const StatsTable::Field fields[] = { "#", 5, ' ', 0, std::ios_base::left }, { "module", 20, ' ', 0, std::ios_base::fmtflags() }, { "layer", 6, ' ', 0, std::ios_base::fmtflags() }, - { "allocs", 7, ' ', 0, std::ios_base::fmtflags() }, + { "allocs", 9, ' ', 0, std::ios_base::fmtflags() }, { "used (kb)", 12, ' ', 2, std::ios_base::fmtflags() }, { "avg/allocation", 15, ' ', 1, std::ios_base::fmtflags() }, { "%/caller", 10, ' ', 2, std::ios_base::fmtflags() }, diff --git a/src/profiler/rule_profiler.cc b/src/profiler/rule_profiler.cc index 3fa0d078f..5012896db 100644 --- a/src/profiler/rule_profiler.cc +++ b/src/profiler/rule_profiler.cc @@ -76,7 +76,7 @@ static const StatsTable::Field fields[] = { "gid", 6, '\0', 0, std::ios_base::fmtflags() }, { "sid", 6, '\0', 0, std::ios_base::fmtflags() }, { "rev", 4, '\0', 0, std::ios_base::fmtflags() }, - { "checks", 7, '\0', 0, std::ios_base::fmtflags() }, + { "checks", 10, '\0', 0, std::ios_base::fmtflags() }, { "matches", 8, '\0', 0, std::ios_base::fmtflags() }, { "alerts", 7, '\0', 0, std::ios_base::fmtflags() }, { "time (us)", 10, '\0', 0, std::ios_base::fmtflags() },