bombela / backward-cpp

A beautiful stack trace pretty printer for C++
MIT License
3.73k stars 471 forks source link

TraceResolver takes half a second for a full stack trace #203

Open cschreib opened 3 years ago

cschreib commented 3 years ago

To start with, thank you for this library! It was very easy to install and gave really nice traces...

My only problem thus far is that, at least with my current setup, creating traces is fairly slow; about half a second for each full stack trace. I was hoping I could use this library to record traces when creating objects. Then, later on, I could selectively print a few traces to find out where a particular object was created. Unfortunately, I need to do this for about 20 000 objects! With the current performance, the program would take 3h just creating the stack traces... I was expecting some overhead, but this is clearly not practical.

Here are information on my setup:

Time per ResolvedTrace:

Do you have recommendations to make this faster?