monsdar / CxxProf

CxxProf is a manual instrumented Profiling library for C++. It's goal is to provide easy integration into existing projects with just as little overhead as possible. It should be easy to remove the profiling mechanism during compile and runtime from the code.
GNU General Public License v3.0
58 stars 5 forks source link

Rework the precision of time #8

Closed monsdar closed 10 years ago

monsdar commented 10 years ago

We're currently storing the microseconds sind application-start in an unsigned int. This just works for a certain time. We need to check when our measurements go down the drain and what happens after that.

We also should think about using a lower precision like milliseconds. According to the Boost-documentation there aren't many systems which could measure microseconds anyways.

A concept could be to also count how many times we reached a certain limit and then start counting again from zero. If we store this value, we could easily extend the duration we could profile up to several years.

What is best suitable for us? How much precision is needed to get the most useful data out of CxxProf?

monsdar commented 10 years ago

All timestamps will be stored in uint64_t now, this means we'll be able to store more than 10k years. Should be enough...