Sample of scalene triangle12/6/2023 System time: breaks out system time (e.g., sleeping or performing I/O) - Scalene only.native code (e.g., libraries) - Scalene only C time: breaks out time spent in Python vs. Multiprocessing: supports use of the multiprocessing library - Scalene only.Unmodified Code: works on unmodified code.Lines or functions: does the profiler report information only for entire functions, or for every line - Scalene does both.Scalene has all of the following features, many of which only Scalene supports: Scalene's overhead is just a 35% slowdown. Slowdown: the slowdown when running a benchmark from the Pyperformance suite.When Scalene is profiling a program launched in the background (via &), you can suspend and resume profiling.Ĭomparison to Other Profilers Performance and Featuresīelow is a table comparing the performance and features of various profilers to Scalene.Scalene supports decorators to profile only specific functions.Scalene can produce reduced profiles (via -reduced-profile) that only report lines that consume more than 1% of CPU or perform at least 100 allocations.Scalene profiles copying volume, making it easy to spot inadvertent copying, especially due to crossing Python/library boundaries (e.g., accidentally converting numpy arrays into Python arrays, and vice versa).
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |