Profiling SmartGit

SmartGit can record performance information to investigate reproducible performance problems. To collect a recording for SmartGit support, do the following:

  • While SmartGit is running, locate the settings directory: invoke Help|About SmartGit and check the Information page for the settings directory (Settings Path).
  • Shut down SmartGit.
  • In the settings directory, open smartgit.properties (create this file if necessary) and add the following line to enable the Debug menu:
smartgit.debug=true
  • Start SmartGit.
  • Invoke Debug | Start/Stop Profiling…. To include class instance counts and sizes, enable Collect heap statistics. This forces garbage collection and can affect the measured timings.
  • Click Start Profiling and reproduce the problem.
  • Invoke Debug | Start/Stop Profiling… again to stop the recording.
  • Send the profiling-...jfr.zip archive from the path shown in the completion dialog, together with a short description of how to reproduce the problem, to [email protected].

The archive is saved in the settings directory and contains the profiling.jfr recording. It includes performance statistics and technical names, such as class, method and thread names. Heap statistics contain class instance counts and sizes, rather than object contents.