Determine Process Info Programmatically in Darwin/OSX

前端 未结 5 409
无人及你
无人及你 2020-11-28 11:26

I have a class with the following member functions:


/// caller pid
virtual pid_t Pid() const = 0; 

/// physical memory size in KB
virtual uint64_t Size() c         


        
5条回答
  •  独厮守ぢ
    2020-11-28 11:49

    Most of this info can be gotten from GetProcessInformation().

    By the way, why virtual methods for functions that return processwide info?

    This is CARBON only, and won't work with cocoa

提交回复
热议问题