Re: FunctionTrace - Low overhead Python Profiler

2022-11-07 Thread Edward K. Ream
On Monday, November 7, 2022 at 9:17:25 AM UTC-6 jacc...@gmail.com wrote:

It looks to be a C extension module which uses profiling hooks built into 
> Python 
>

Thanks for your comments. As I read/skim the code, the magic must be 
elsewhere, that it, in the code that calls the callbacks. Imo, that code 
must be very low level (system/compiler dependent) code. But of course I 
could be mistaken.

Many years ago there was a unix tool called (iirc) systrace. That tool 
*might* have evolved into the Android systrace tool 
, but if so it 
has evolved considerably.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/af214c21-a71b-4685-a748-dc9d2411d841n%40googlegroups.com.


Re: FunctionTrace - Low overhead Python Profiler

2022-11-07 Thread Jacob MacDonald
It looks to be a C extension module
(https://gitlab.com/mbryant/functiontrace/-/blob/770340083a06b46c6dfe6cd8128600a11a47d3dc/py-functiontrace/_functiontrace.c)
which uses profiling hooks built into Python
(https://docs.python.org/3/c-api/init.html#c.PyEval_SetProfile, among
others).

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CACy6W0ADHGnGKKA2C0DHrVNgB%2Bxyume7ygBC%2BVxfDiEzVhHR0w%40mail.gmail.com.


Re: FunctionTrace - Low overhead Python Profiler

2022-11-07 Thread Edward K. Ream
> The sources [for FunctionTrace] are here 
.

FunctionTrace is likely a python wrapper around system tracing tools. 
Surely there is no way to get the performance claimed using only python (or 
rust).

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/2a147a76-90ed-42a7-b2a4-c5dd2fa68075n%40googlegroups.com.


Re: FunctionTrace - Low overhead Python Profiler

2022-11-06 Thread Edward K. Ream


On Saturday, November 5, 2022 at 9:16:56 AM UTC-5 tbp1...@gmail.com wrote:

> I stumbled upon an interesting profiler today - FunctionTrace.  It works 
> together with Firefox so as to make use of Firefox's profiling UI, and 
> supposedly incurs almost no slowdown while profiling.  It's currently 
> Linux.Mac only.
>
> FunctionTrace Home Page 
> Building FunctionTrace, a graphical Python profiler 
> 
>

Thanks for these links. The sources are here 
.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/6a2ce9b6-1ce7-4c7a-be23-6b284c7e4e4dn%40googlegroups.com.


FunctionTrace - Low overhead Python Profiler

2022-11-05 Thread Thomas Passin
I stumbled upon an interesting profiler today - FunctionTrace.  It works 
together with Firefox so as to make use of Firefox's profiling UI, and 
supposedly incurs almost no slowdown while profiling.  It's currently 
Linux.Mac only.

FunctionTrace Home Page 
Building FunctionTrace, a graphical Python profiler 


I've never done any Python profiling, but this looks worth looking at, 
especially the second link.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/db3e4d6b-30ea-4a3f-a1af-a60e8dfaa409n%40googlegroups.com.