README.md

glibc-malloc-trace-utils

glibc malloc trace post-processing utilities

statistics.c:

Runs over the trace file and produces rudimentary statistics about the allocations e.g. minimum request size in bytes, maximum request size in bytes, and average request size in bytes.

trace_allocs.c:

Print all the allocation requests for a given trace. This program generates one of the data files plotted by plot.m, namely the scatter plot of allocation size requests. The input is the trace file.

hist.sh:

Converts the list of allocations generated by trace_allocs.c into a binned list with unique allocation sizes and counts as output. This generates one of hte data files plotted by plot.m, namely the scatter plot of allocation counts by size.

sample.c:

An N-th sample down-sampling program that down-samples a single column of numerical data into N-th samples with min, mean, max, and value at N-th sample. Down-sampling data is the only way to visualize large datasets.

plot.m:

An Octave compatible script to turn load down-sampled plot data into useful graphs for analysis of the workload.