GitXplorerGitXplorer
x

traced-allocator

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
896ed0409fa8faad472f46846014382f5e27bec7

Implement realloc and alloc_zeroed

xxd009642 committed 4 years ago
Unverified
b69b7593836f1d5e877ba3dff7264bda2dc245c0

Add readme

xxd009642 committed 4 years ago
Unverified
1130394bfa201922a8e48fd561f6562e51619df8

Print out some allocations

xxd009642 committed 4 years ago
Unverified
8a0f163d5237106397e377bfa45f94427deab692

Start work on traced alloc

xxd009642 committed 4 years ago

README

The README file for this repository.

traced-allocator

Work on tracing memory allocations in an application via location.

This is a very WIP thing.

Current output


Alloc Layout { size_: 4, align_: 1 } at Location { file: "src/main.rs", line: 4, col: 1 }
realloc Layout { size_: 4, align_: 1 } to 5 at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 40, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 48, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 80, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 8, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 24, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 64, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 1024, align_: 1 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 104, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Alloc Layout { size_: 8, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Creating vec
Pushing
Alloc Layout { size_: 8, align_: 1 } at Location { file: "src/main.rs", line: 4, col: 1 }
realloc Layout { size_: 8, align_: 1 } to 16 at Location { file: "src/main.rs", line: 4, col: 1 }
realloc Layout { size_: 16, align_: 1 } to 32 at Location { file: "src/main.rs", line: 4, col: 1 }
realloc Layout { size_: 32, align_: 1 } to 64 at Location { file: "src/main.rs", line: 4, col: 1 }
realloc Layout { size_: 64, align_: 1 } to 128 at Location { file: "src/main.rs", line: 4, col: 1 }
Everything goes
Dealloc Layout { size_: 128, align_: 1 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 1024, align_: 1 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 104, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 8, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 8, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 64, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 24, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 5, align_: 1 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 40, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 48, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }
Dealloc Layout { size_: 80, align_: 8 } at Location { file: "src/main.rs", line: 4, col: 1 }