Skip to content

Commit

Permalink
Add aggregated table for multiple hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Baldwin committed Oct 17, 2023
1 parent 37b0d00 commit 508b084
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 3 deletions.
4 changes: 4 additions & 0 deletions locust/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,10 @@ def requests_csv(self, csv_writer: CSVWriter) -> None:
csv_writer.writerow(self.requests_csv_columns)
self._requests_data_rows(csv_writer, stats)
csv_writer.writerow([])

csv_writer.writerow(["Aggregated"])
csv_writer.writerow(self.requests_csv_columns)
self._requests_data_rows(csv_writer, [self.environment.stats.total])
else:
csv_writer.writerow(self.requests_csv_columns)
self._requests_data_rows(csv_writer, chain(sorted_stats, [self.environment.stats.total]))
Expand Down
Loading

0 comments on commit 508b084

Please sign in to comment.