LeakRecord
pub type LeakRecord = { address: ref void, size: i64, line: i64, file: ref u8 }One live allocation reported by -leak-check.
Fields
| Name | Type |
|---|---|
address | ref void |
size | i64 |
line | i64 |
file | ref u8 |
pub type LeakRecord = { address: ref void, size: i64, line: i64, file: ref u8 }One live allocation reported by -leak-check.
| Name | Type |
|---|---|
address | ref void |
size | i64 |
line | i64 |
file | ref u8 |
pub type LeakDiagnostics = { enabled: i64, live_allocations: i64, live_bytes: i64, total_allocations: i64, total_frees: i64, peak_live_bytes: i64, invalid_frees: i64, records: ref LeakRecord, record_count: i64 }| Name | Type |
|---|---|
enabled | i64 |
live_allocations | i64 |
live_bytes | i64 |
total_allocations | i64 |
total_frees | i64 |
peak_live_bytes | i64 |
invalid_frees | i64 |
records | ref LeakRecord |
record_count | i64 |
fn leak_record_at(records: ref LeakRecord, index: i64) ref LeakRecordpub fn (LeakDiagnostics) pprint(ld: LeakDiagnostics) voidPrint a readable leak summary to stdout.
pub fn (LeakDiagnostics) pprint_str(ld: LeakDiagnostics) str.StringReturn the same summary as a heap-allocated String.