plasma-umass / coz

Coz: Causal Profiling
Other
4.03k stars 160 forks source link

Logging takes too much time #188

Open kormang opened 2 years ago

kormang commented 2 years ago

I'm trying to profile a project, that is so huge, that most of the initialization time is spend on logging in inspect.cpp, in the loop that prints: Included source file..... I'm talking about minutes on high end machine! Messages that are logged, are generally useful, and I'd like to keep them.

I'm using -s and -b for fine control of profiling process, but still not enough to solve this issue.

Currently, I'm using my own build of coz, so I've commented out that loop.

Do you have any advice, how to solve this is in a general way, and possibly include it in a PR?