Profiling:Linux:Callgrind

From FIFE development wiki
Jump to: navigation, search

Introduction

This article covers how to profile FIFE with the callgrind tool under Linux.

Required software

Howto

  1. Download and install valgrind.
  2. Download and install callgrind.
  3. Download and install KCachegrind (requires KDE base files).
  4. valgrind --tool=callgrind python2.5 run.py (or: valgrind --tool=callgrind python2.5 <python_script>).
  5. Open the generated profile log with KCachegrind.