stats: Fix issue when printing 2D vectors
Review Request #1952 - Created July 16, 2013 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 9820:e04841740635 --------------------------- stats: Fix issue when printing 2D vectors This patch addresses an issue with the text-based stats output which resulted in Vector2D stats being printed without subnames in the event that one of the dimensions was of length 1. This patch also fixes the total printing for the 2D vector. Previously totals were printed without explicitly stating that a total was being printed. This has been rectified in this patch.
All regressions pass after appending ::total and the second dimension name to the places where only one item was stored (e.g. pkt_count for the toL2Bus)
