tobogganSe connecter

louise

The Louise language: compiler, runtime, std, tooling

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Runtime: LOUISE_STATS prints the blocks a program ever allocated

The leak oracle's per-thread counts double as an exact allocation
counter: each thread now also counts the blocks it allocates without
the frees, and tl_stats_allocations() sums them (-1 without the stats
feature, as tl_stats_live_blocks()). With LOUISE_STATS set,
tl_report_leaks prints "louise: allocs: N" at exit — allocations per
request are N divided by the requests served, the SSR optimization
plan's guiding metric. Unset, nothing is printed and the cost is one
extra thread-local load and store per allocation, next to the one the
leak oracle already does.

olivier · il y a 1 mois · 837061c5366702ca0f59986e108ad7ca7d2f821e

Parents 36eb452

4 fichiers modifiés, 86 ajouts, 21 suppressions