跳转至

ProcessMetric 对象

  • pid Integer - 进程的 ID。
  • type string - 进程类型。以下值之一:
    • Browser
    • Tab
    • Utility
    • Zygote
    • Sandbox helper
    • GPU
    • Pepper Plugin
    • Pepper Plugin Broker
    • Unknown
  • serviceName string(可选)- 进程的非本地化名称。
  • name string(可选)- 进程的名称。 实用程序的示例:Audio Service、Content Decryption Module Service、Network Service、Video Capture 等。
  • cpu CPUUsage - 进程的 CPU 使用率。其 percentCPUUsage 和 idleWakeupsPerSecond 是自上次调用返回此对象的 API 以来的平均值。
  • creationTime number - 此进程的创建时间。 该时间表示为自纪元以来的毫秒数。 由于进程终止后 pid 可能被重用, 因此同时使用 pid 和 creationTime 来唯一标识进程会很有用。
  • memory MemoryInfo - 进程的内存信息。
  • sandboxed boolean(可选)macOS Windows - 进程在 OS 层面是否被沙箱化。
  • integrityLevel string(可选)Windows - 以下值之一:
    • untrusted
    • low
    • medium
    • high
    • unknown

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 el/electron