mirror of
https://github.com/cool-RR/PySnooper.git
synced 2026-01-23 02:14:04 +00:00
Add normalize flag to remove machine-specific data
This allows for diffing between multiple PySnooper outputs.
This commit is contained in:
parent
c0bf4bd006
commit
0c5834196a
6 changed files with 301 additions and 112 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue