libdebug.snapshots.process.process_shapshot_diff
ProcessSnapshotDiff
Bases: Diff
This object represents a diff between process snapshots.
Source code in libdebug/snapshots/process/process_shapshot_diff.py
__init__(snapshot1, snapshot2)
Returns a diff between given snapshots of the same process.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
snapshot1
|
ProcessSnapshot
|
A process snapshot. |
required |
snapshot2
|
ProcessSnapshot
|
A process snapshot. |
required |
Source code in libdebug/snapshots/process/process_shapshot_diff.py
_generate_thread_diffs()
Generates diffs between threads in the two compared snapshots.
Thread differences
- Born threads and dead threads are stored directly in separate lists (no state diff exists between the two).
- Threads that exist in both snapshots are stored as diffs and can be accessed through the threads_diff property.