跳转到主要内容

ProcessMetric 对象

  • pid Integer - 进程的进程 ID。
  • type string - 进程类型。以下值之一
    • Browser
    • Tab
    • Utility
    • Zygote
    • Sandbox helper
    • GPU
    • Pepper Plugin
    • Pepper Plugin Broker
    • Unknown
  • serviceName string (可选) - 进程的非本地化名称。
  • name string (可选) - 进程的名称。实用工具的示例:Audio ServiceContent Decryption Module ServiceNetwork ServiceVideo Capture 等。
  • cpu CPUUsage - 进程的 CPU 使用率。
  • creationTime number - 此进程的创建时间。时间表示为自 epoch 以来的毫秒数。由于进程死后 pid 可以被重复使用,因此同时使用 pidcreationTime 来唯一标识一个进程非常有用。
  • memory MemoryInfo - 进程的内存信息。
  • sandboxed boolean (可选) macOS Windows - 进程是否在 OS 级别受到沙盒保护。
  • integrityLevel string (可选) Windows - 以下值之一
    • untrusted
    • low
    • medium
    • high
    • unknown