arrow
Return

Low Overhead Allocation Sampling in a Garbage Collected Virtual Machine

delete2026-01-01
delete0
PRE
AI
DOI:10.5381/jot.2026.25.1.a16delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Compared to the more commonly used time-based profiling, allocation profiling provides an alternate view of the execution of allocation heavy dynamically typed languages. However, profiling every single allocation in a program is very inefficient. We present a sampling allocation profiler that is deeply integrated into the garbage collector of PyPy, a Python virtual machine. This integration ensures tunable low overhead for the allocation profiler, which we measure and quantify. Enabling allocation sampling profiling with a sampling period of 4 MB leads to a maximum time overhead of 25% in our benchmarks, over un-profiled regular execution.
Keywords:
Sampling Profiler
Allocation Profiler
Python
PyPy
Garbage Collection

Journal

J
Journal of Object Technology
IF:
1.4
Papers:
20
Citations:
0

Organization

H
heinrich heine university dusseldorf
Scholars:
857
Papers: 329
Citations: 0