Hi Guys,

Implementing and TESTING function-call support is boring so ...

I have just written a little piece of code that counts which switch-cases are executed most frequently versus how often their conditions are evaluated.

This can essentially be the basis for pgo based on the ctfe-function path. Since functions are supposed to be the same at ctfe and at runtime, you basically get profiling information for free while compiling.

Cheers,
Stefan

Reply via email to