Commit graph

5 commits

Author SHA1 Message Date
Lephenixnoir
b6657c0834
add non-recursive, faster versions of enter/leave 2021-09-27 22:01:04 +02:00
Lephenixnoir
6b5685a35e
add version and a find_package() module 2021-01-28 22:23:33 +01:00
Lephenixnoir
5be56fe2eb
let the user allocate contexts locally
This incompatible change modifies the allocation method for contexts.
Instead of managing a set of IDs in an malloc()-backed array, contexts
can now be allocated on the stack or static RAM.

Contexts are values of type [prof_t] and can be initialized to the value
provided by prof_make(). lvalues to contexts replace context IDs.

Finally, prof_exec() no longer requires a context to be specified, it
creates one on the fly.
2020-10-13 19:30:45 +02:00
Lephenixnoir
8b074a4e58
update to upcoming timer API of gint 2.1 2020-06-20 23:20:20 +02:00
Lephenixnoir
2c78a2cfeb basic working implementation with manual calls 2019-07-17 13:00:49 -04:00