This adds a estimated max or stack usage to the thread snapshot proto.
For the embOS thread backend, store the max stack pointer in the new
field.
Fix: b/199208763
No-Docs-Update-Reason: Minor enhancement
Testing: Able to for verify by running production SW, forcing a crash,
and retrieving snapshot.
Unit tests are updated and pass.
Change-Id: Iaafe540201d8e7e16b2bfa4e83458893f2ba8dd6
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/60246
Commit-Queue: Jennifer Silva <jennifersilva@google.com>
Commit-Queue: Keir Mierle <keir@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Adds a python library for processing Thread protos to provide additional
information that can be inferred from the captured data.
Change-Id: Ic1d7adb628e6486f733f41c3f6406f30e9a4452a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/55001
Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com>
Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Reviewed-by: Keir Mierle <keir@google.com>
Adds an optional library for capturing ThreadX thread state in
proto snapshots.
Change-Id: I47dbc5a57faf3d4411255ea83f04f17bf0a4dc46
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/51405
Commit-Queue: Rob Mohr <mohrr@google.com>
Pigweed-Auto-Submit: Rob Mohr <mohrr@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Initial commit for the pw_snapshot module that introduces the proto
format for device snapshots, and documentation that introduces the
pw_snapshot module and how to use it.
Change-Id: I63e12d245073e82de03be995a001a0ee0cc1f443
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/38103
Commit-Queue: Armando Montanez <amontanez@google.com>
Reviewed-by: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: David Rogers <davidrogers@google.com>