JsonEmitter class final
Emits leaks as a JSON file.
The output is a human-readable, indented JSON array containing serialized Allocation records. This format is suitable for machine processing, archival storage, or external analysis tools.
- Implemented types
Constructors
- JsonEmitter({required String filePath})
-
Creates a JSON emitter that writes to
filePath.const
Properties
Methods
-
emit(
List< Allocation> leaks) → void -
Writes all
leaksto disk as formatted JSON.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited