Skip to content

add feature for bthread cpu time usage #2833

Description

@icexin

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)
我期待在rpc服务端统计请求粒度的cpu使用时间,用于计算租户的cpu消耗,不能简单用qps这样的指标,因为不同的qps资源消耗不一样。

Describe the solution you'd like (描述你期望的解决方法)
类似线程有 clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts) 可以获取线程的真实cpu时间(不包括阻塞在系统调用),希望bthread有类似的接口

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions