Skip to content

Commit

Permalink
Merge pull request #11 from tuexen/master
Browse files Browse the repository at this point in the history
Improve group statistics.
  • Loading branch information
uperf committed Sep 11, 2017
2 parents 85c7979 + f26c242 commit 4ffa40a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/print.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ print_avg_header(char *label)
uperf_line();
}

/* Txn1 41.73GB/29.40(s) = 12.19Gb/s 19288txn/s 51.84us/txn */
/* Txn1 41.73GB/29.40(s) = 12.19Gb/s 19288txn/s 51.84us/txn */
void
print_summary(newstats_t *ns, int same_line)
{
Expand All @@ -113,7 +113,7 @@ print_summary(newstats_t *ns, int same_line)
msg[window_width() - 1] = '\0';
printf("\r%s\r", msg);
}
printf("%-6s ", ns->name);
printf("%-8.8s ", ns->name);
PRINT_NUM(ns->size, 8);
printf("/%7.2f(s) = ", time/1.0e+9);
PRINT_NUMb(throughput, 12);
Expand Down
2 changes: 2 additions & 0 deletions src/stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ stats_update(int type, strand_t *s, newstats_t *stats, uint64_t size,

case FLOWOP_BEGIN:
if (ENABLED_FLOWOP_STATS(options) ||
ENABLED_GROUP_STATS(options) ||
ENABLED_HISTORY_STATS(options)) {
return (newstat_begin(s, stats, 0, 0));
}
Expand All @@ -162,6 +163,7 @@ stats_update(int type, strand_t *s, newstats_t *stats, uint64_t size,
STRAND_STAT(s)->count += count; /* Thread safe */

if (ENABLED_FLOWOP_STATS(options) ||
ENABLED_GROUP_STATS(options) ||
ENABLED_HISTORY_STATS(options)) {
int err = newstat_end(s, stats, size, count);
if (ENABLED_HISTORY_STATS(options)) {
Expand Down

0 comments on commit 4ffa40a

Please sign in to comment.