Add normalize flag to remove machine-specific data

This allows for diffing between multiple PySnooper outputs.
This commit is contained in:
Itamar.Raviv 2019-11-19 18:08:54 +02:00 committed by Ram Rachum
parent c0bf4bd006
commit 0c5834196a
6 changed files with 301 additions and 112 deletions

View file

@ -144,6 +144,12 @@ Start all snoop lines with a prefix, to grep for them easily:
@pysnooper.snoop(prefix='ZZZ ')
```
Remove all machine-related data (paths, timestamps, memory addresses) to compare with other traces easily:
```python
@pysnooper.snoop(normalize=True)
```
On multi-threaded apps identify which thread are snooped in output:
```python