Using the PStats tool for finding performance bottlenecks