Need MetricKit Implementation details for MacOS background Application, mainly for

Hi, We are trying to integrate Metric Kit into our MacOS Application. Our application is a background process. We are interested in getting CPU and Memory metrics for our process. MXMetricPayload is the one we are looking at. We tried to integrate metric Kit and left the background app for 24 hours, we did not get any callback. So, does metric kit work for background app in MacOS? Also does it for Network Extension?

Also one more point, when i integrated metric Kit and used Xcode to simulate MetricKit payloads, i was getting the callback i.e func didReceive(_ payloads: [MXMetricPayload])

Main issue was that when i launched my app with changes and waited for more than 24 hours, but i did not get any callback, so wanted to know if it works on background apps or not? Also does it work on MacOS or not? Could u pls help to answer it

MetricKit definitely works on macOS.

I’m not sure about how it interacts with Network Extension processes. Let’s start with some basics:

  • Is your NE provider packaged as an app extension or a system extension?
  • If it’s an sysex, are you distributing it directly? Or on the Mac App Store.

TN3134 Network Extension provider deployment talks more about NE provider packaging and deployment options.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Need MetricKit Implementation details for MacOS background Application, mainly for
 
 
Q