Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
/ pyinstrument_cext Public archive

Pyinstrument's C extensions - enables the development of a fast statistical profiler

License

Notifications You must be signed in to change notification settings

joerick/pyinstrument_cext

Repository files navigation

pyinstrument_cext

Pyinstrument's C extensions - reducing the overhead of statistical profilers.

Note: Since Pyinstrument 4.0, this library has been folded into pyinstrument.

API

pyinstrument_cext.setstatprofile(profilefunc, interval)

Sets the statistal profiler callback. The function in the same manner as setprofile, but instead of being called every on every call and return, the function is throttled - called no more than every interval seconds with the current stack.

Changelog

0.2.3

  • Build wheels for Python 3.8 and Python 3.9

0.2.2

  • Avoid the immediate callback to the profiler function, setstatprofile now waits for interval before calling the function.

0.2.0

  • Add support for multi-threading. Profiling sessions are per-thread, and they don't conflict with each other.

0.1.6

  • Fixes to CI configuration

0.1.3

  • Added LICENSE to sdist

0.1.2

  • Added CI build/test/deployment

About

Pyinstrument's C extensions - enables the development of a fast statistical profiler

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •