mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-12-01 12:20:02 +00:00
Added tracebd.py, a script for rendering block device operations
Based on a handful of local hacky variations, this sort of trace rendering is surprisingly useful for getting an understanding of how different filesystem operations interact with the underlying block-device. At some point it would probably be good to reimplement this in a compiled language. Parsing and tracking the trace output quickly becomes a bottleneck with the amount of trace output the tests generate. Note also that since tracebd.py run on trace output, it can also be used to debug logged block-device operations post-run.
This commit is contained in:
@ -501,7 +501,7 @@ if __name__ == "__main__":
|
||||
help="Show uncovered branches.")
|
||||
parser.add_argument('-c', '--context', type=lambda x: int(x, 0), default=3,
|
||||
help="Show a additional lines of context. Defaults to 3.")
|
||||
parser.add_argument('-w', '--width', type=lambda x: int(x, 0), default=80,
|
||||
parser.add_argument('-W', '--width', type=lambda x: int(x, 0), default=80,
|
||||
help="Assume source is styled with this many columns. Defaults to 80.")
|
||||
parser.add_argument('--color',
|
||||
choices=['never', 'always', 'auto'], default='auto',
|
||||
|
||||
Reference in New Issue
Block a user