Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dev script to make tracing easier. #237

Merged
merged 1 commit into from
Oct 27, 2019

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Oct 27, 2019

This creates a ./dev folder (for stashing helpful development scripts/utils/etc).

The specific file added here (`dev/trace-multiple-visit.js') can be used for quickly tracing the characteristics of the following:

  • require('fastboot') - Labeled in the trace as "require fastboot"
  • new FastBoot({ distPath: '...' }) - Labeled in the trace as "initial setup"
  • await fastboot.visit('/') - Labeled in the trace as "first visit"
  • await fastboot.visit('/') - Labeled in the trace as "second visit"
  • await fastboot.visit('/') - Labeled in the trace as "third visit"

General usage and evaluation steps:

  1. run the script (e.g. node dev/trace-multiple-visit.js)
  2. Navigate Chrome to the chrome:tracing
  3. Click "load" (in the top left) and navigate to this repo, select the node_trace.1.log file
  4. Review / evaluate

Paired with @krisselden.


Current results:

Screen Shot 2019-10-27 at 8 59 53 AM

This creates a `./dev` folder (for stashing helpful development
scripts/utils/etc).

The specific file added here (`dev/trace-multiple-visit.js') can be used
for quickly tracing the characteristics of the following:

* `require('fastboot')` - Labeled in the trace as `"require fastboot"`
* `new FastBoot({ distPath: '...' })` - Labeled in the trace as
  `"initial setup"`
* `await fastboot.visit('/')` - Labeled in the trace as `"first visit"`
* `await fastboot.visit('/')` - Labeled in the trace as `"second visit"`
* `await fastboot.visit('/')` - Labeled in the trace as `"third visit"`

General usage and evaluation steps:

1. run the script (e.g. `node dev/trace-multiple-visit.js`)
2. Navigate Chrome to the `chrome:tracing`
3. Click "load" (in the top left) and navigate to this repo, select the `node_trace.1.log` file
4. Review / evaluate

Co-authored-by: Kris Selden <kselden@linkedin.com>
@kiwiupover
Copy link
Member

thanks @rwjblue and @krisselden for this

@rwjblue rwjblue merged commit 749a4c7 into ember-fastboot:master Oct 27, 2019
@rwjblue rwjblue deleted the add-dev-scripts branch October 27, 2019 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants