Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一个操作系统级别的 API 来说明 OSX 中特定线程消耗的周期。
这类似于这个问题(和答案),但在 OSX 中。
您应该能够从thread_basic_info结构中获取此信息,该结构由对thread_info的调用返回。