Questions tagged [profilestats]

profilestats is a decorator used to profile python source to generate profile data compatible with k/qcachegrind format.

2 questions
9
votes
1 answer

How to source annotate python when using qcachegrind to process profilestats output

Kcachegrind serves as a wonderful utility to visually represent the hotspot to the source line level when profiling code. I found it pretty useful when micro optimizing my C++ code base. For my latest python project I started using Kcachegrind to…
Abhijit
  • 62,056
  • 18
  • 131
  • 204
0
votes
1 answer

More efficient string to command method

I need a more efficient method to accomplish the following: for character in commandSequence: if character == "F": i += 1 gps = move(fullList.iloc[i-1, 2:].values, distance, yaw, pitch, 'forward') …
Izak Joubert
  • 906
  • 11
  • 29