szmarczak / http-timer

🕐 Performance timings for HTTP requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improve `electron` support

szmarczak opened this issue · comments

Currently the timings look this:

  timings: {
    start: 1576269343669,
    socket: undefined,
    lookup: undefined,
    connect: undefined,
    secureConnect: undefined,
    upload: 1576269343682,
    response: 1576269344083,
    end: undefined,
    error: undefined,
    phases: {
      wait: undefined,
      dns: undefined,
      tcp: undefined,
      tls: undefined,
      request: NaN,
      firstByte: 401,
      download: undefined,
      total: undefined
    }
  }

Missing:

  • timings.end
  • timings.phases.request
  • timings.phases.download
  • timings.phases.total

If you add any workarounds, ensure you also open Electron issues.