...
- on object allocation, a stack-trace is taken. This takes significant time and generates some garbage.
- in order to lessen performance impact of taking stack-traces, sampling is used (i.e. not every object allocation is recorded). This leads to inaccurate profiling results.
As a result, we get both an memory allocation profilers leave us with both inaccurate profiling results and an impact on the profiled application.
...