easy_profiler icon indicating copy to clipboard operation
easy_profiler copied to clipboard

printf-style formatting in block names

Open corporateshark opened this issue 7 years ago • 1 comments

Support printf-style formatting as follows:

EASY_BLOCK_FORMATTED("Frame: %i", profiler::colors::Red, i);

corporateshark avatar Feb 07 '18 00:02 corporateshark

@corporateshark thanks for suggestion. I think with issue not so difficult. I've created branch for making some test and discussion (for example, about status of block as optional parameter)

And I think color will be more clear as first parameter of macros instead of misleading argument for printf-style format-string

yse avatar Feb 07 '18 20:02 yse