Meta interview question

Design the APIs for a thread profiler and integrate it into a system.