Skip to content

Make --performance flag work with opening a second window #11220

Closed

Description

  • run the following command: code --performance
  • run F1 > Show Startup Perf
  • wait a little ~30sec
  • open another blank window of VS Code
  • run F1 > Show Start Perf
  • 🐛 the value of Total seems to include the wait time from step 3

Activity

  1. added
    bug
    on Aug 30, 2016
  2. jrieken commented on Aug 30, 2016

    @jrieken
    ContributorAuthor

    Benjamin Pasero (@bpasero) fyi I found this because I have the feeling that opening a new window is slower then starting VS Code but I have a hard time debugging/measuring this. Any tips are welcome.

  3. bpasero commented on Aug 30, 2016

    @bpasero
    Contributor

    Johannes Rieken (@jrieken) yeah this flag currently only makes sense for the first window to open, it is not fit for multi window case, though we could probably add that because we know how many windows are open.

  4. changed the title [-]--performance flag produces wrong numbers[/-] [+]Make --performance flag work with opening a second window[/+] on Aug 30, 2016
  5. added
    feature-request
    and removed
    bug
    on Aug 30, 2016
  6. bpasero commented on Aug 30, 2016

    @bpasero
    Contributor

    Johannes Rieken (@jrieken) only thing I know right now to measure startup time within a window is to run the profiler and do a Reload Window. This should be very similar to the time it takes to open a second window.

    That said I would be surprised if a second window really opens slower compared to a first one...

  7. added a commit that references this issue on Nov 16, 2016
    699a410
  8. bpasero commented on Nov 16, 2016

    @bpasero
    Contributor

    You can now always run Developer: Startup Performance even if not providing --performance (it will just have a little less details). Also, for a second window, the start time will be correctly taken as the load time of the window and not the overall program start time.

  9. added
    verification-needed
    on Nov 16, 2016
  10. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions