You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.
This doesn't help me if I want to profile processSingleSource() which is called inside scheduleJobs. What I actually want to see:
Notice how instead of scheduleJobs->as_completed->wait I get actual detalization of functions called inside processSingleSource.
I managed it by replacing ThreadPoolExecutor construct with simple processSingleSource() call, asserting that len(sourceFiles) == len(objectFiles) == 1. In my use case (CMake + Ninja) there is always 1 source file per 1 compiler call, so using thread pool becomes a waste of syscalls, since it will always create 1 thread to do the job and return immediately after this thread is done.
The text was updated successfully, but these errors were encountered:
Basically, what I get after combining
pstats
:This doesn't help me if I want to profile
processSingleSource()
which is called insidescheduleJobs
. What I actually want to see:Notice how instead of
scheduleJobs->as_completed->wait
I get actual detalization of functions called insideprocessSingleSource
.I managed it by replacing
ThreadPoolExecutor
construct with simpleprocessSingleSource()
call, asserting thatlen(sourceFiles) == len(objectFiles) == 1
. In my use case (CMake + Ninja) there is always 1 source file per 1 compiler call, so using thread pool becomes a waste of syscalls, since it will always create 1 thread to do the job and return immediately after this thread is done.The text was updated successfully, but these errors were encountered: