Is VizTracer enable its support for multiProcessing.Pool.Map? #438
-
I want to compare performance between multiprocessing.Process and multiprocessing.pool.map, however, it doesn't work on map.It doesn't work, like this. It doesn't show times in single processer. I find only pool.async_apply method, but not pool.map.Is there some ways? 我想对比一下自己新建Process和使用Pool,然后在里面应用map的比较,但是使用VT好像如下图所示没有显示出来每一个进程的运行时间等信息,我只在文档里面找到了Pool async_apply 方法的,没找到map的,这里有什么其他方法或者参数吗(当然我也没在文档里面找到)
where is_prime function: 其中is_prime 函数
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Are you using Windows? It's impossible (well not with some serious hacks to the stdlib) to support pools on Windows because Windows terminates the process workers abruptly without giving viztracer any change to intercept. |
Beta Was this translation helpful? Give feedback.
Are you using Windows? It's impossible (well not with some serious hacks to the stdlib) to support pools on Windows because Windows terminates the process workers abruptly without giving viztracer any change to intercept.