Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

calltrace.faq

Klemens David Morgenstern edited this page Apr 4, 2018 · 1 revision

Which platforms are supported?

This currently only support gcc and clang. It is however quite easy to add more compiler support if function similar to __cyg_profile_func_enter or __cyg_profile_func_exit are available.

Why is this not part of metal.unit

To make this tool possible to use with other unit testing frameworks. This might be a bit annoying with the jsons being seperate, but it allows the usage of simple assertion which every test framework has.

Can I use a formatted string for profiling?

Not without modifying the implementation. The idea is to get the timestamp as fast as possible, which is why it was assumed, that having a string formatted would be too inefficient. It would however be a feature that could be added in the future.