OSSignposter is a Swift API for os_signpost which you probably won't be able to use from another language, but it sounds like you can use the C API declared in <os/signpost.h>.
Note that the C API is partially implemented using macros (for example, os_signpost_interval_begin()). You'll probably need to look through the <os/signpost.h> header to figure out which C functions the macros call and how they do so, replicating that in your code. Or you may be able to find a library which does this for you.
I believe the dylib which implements os_signpost is libsystem_trace.dylib.