Git Product home page Git Product logo

flamegrill's Introduction

flamegrill

flame grill your webpages for easy digestion

Prerequisites

web page to test

Usage

flamegrill [command] [options]

Commands

cook (default)

run flamegrill against specified input

Options

--name, -n

name for given scenario

--scenario, -s

URL for scenario under test

--baseline, -b

optional baseline scenario to compare against

--temp-dir, -t

location to store intermediate files (default: cwd)

--out-dir, -o

location to store test results (default: cwd)

--help, -?, -h

help message

Examples

The following invocations perform the tests using a scenario that you can find here.

$ flamegrill cook -n SplitButton -s "http://fabricweb.z5.web.core.windows.net/pr-deploy-site/refs/heads/master/perf-test/index.html?scenario=SplitButtonNew&iterations=5000"

$ flamegrill cook -n SplitButton -s "http://fabricweb.z5.web.core.windows.net/pr-deploy-site/refs/heads/master/perf-test/index.html?scenario=SplitButtonNew&iterations=5000" -b "http://fabricweb.z5.web.core.windows.net/pr-deploy-site/refs/heads/master/perf-test/index.html?scenario=SplitButton&iterations=5000"

$ flamegrill cook -n SplitButtonNew -s "http://fabricweb.z5.web.core.windows.net/pr-deploy-site/refs/heads/master/perf-test/index.html?scenario=SplitButtonNew&iterations=5000" -o out -t temp

Open Source Credits

Flamebearer is an inspiration for this project and is used to generate flamegraphs. Parts of Flamebearer have been modified and expanded upon to add more functionality to the flamegraphs.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

flamegrill's People

Contributors

alloy avatar dannyvv avatar dependabot[bot] avatar dyllew3 avatar ecraig12345 avatar jasongore avatar kenotron avatar microsoft-github-policy-service[bot] avatar renovate[bot] avatar sbenstewart avatar xugao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

flamegrill's Issues

Network Errors should not hang

Various network errors result in flamegrill hanging forever:

  • net::ERR_CONNECTION_TIMED_OUT
  • net::ERR_NAME_NOT_RESOLVED
  • net::ERR_CONNECTION_REFUSED

Flamegrill should abort or continue when these errors occur. Add unit tests for their occurrence, as well.

Example:

C:\git\temp\temp
ฮป flamegrill -n Test -s http://invalid.url
options: {"command":"cook","name":"Test","scenario":"http://invalid.url"}
profile logFile: C:\git\temp\temp\puppeteer.log
Starting test for Test at http://invalid.url
(node:30912) UnhandledPromiseRejectionWarning: Error: net::ERR_NAME_NOT_RESOLVED at http://invalid.url
    at navigate (C:\git\flamegrill\node_modules\puppeteer\lib\FrameManager.js:121:37)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  -- ASYNC --
    at Frame.<anonymous> (C:\git\flamegrill\node_modules\puppeteer\lib\helper.js:111:15)
    at Page.goto (C:\git\flamegrill\node_modules\puppeteer\lib\Page.js:674:49)
    at Page.<anonymous> (C:\git\flamegrill\node_modules\puppeteer\lib\helper.js:112:23)
    at C:\git\flamegrill\packages\flamegrill\lib\profile\profile.js:94:20
    at Generator.next (<anonymous>)
    at fulfilled (C:\git\flamegrill\packages\flamegrill\lib\profile\profile.js:4:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:30912) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:30912) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Terminate batch job (Y/N)?
^C

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (github>microsoft/m365-renovate-config:groupYargs). Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • Update devDependency typescript to v4.9.5
  • Update Jest packages to v29 (major) (@types/jest, ts-jest)
  • Update dependency babel-plugin-styled-components to v2
  • Update dependency gatsby-plugin-react-svg to v3
  • Update dependency puppeteer to v22
  • Update dependency react-helmet to v6
  • Update dependency react-icons to v5
  • Update dependency react-share to v5
  • Update dependency styled-components to v6
  • Update devDependency @types/concat-stream to v2
  • Update devDependency @types/puppeteer to v7
  • Update devDependency jest to v29
  • Update devDependency lerna to v8
  • Update devDependency rimraf to v5
  • Update devDependency typescript to v5
  • Update gatsby monorepo (major) (gatsby-link, gatsby-plugin-manifest, gatsby-plugin-nprogress, gatsby-plugin-offline, gatsby-plugin-react-helmet, gatsby-plugin-remove-trailing-slashes, gatsby-plugin-sitemap, gatsby-plugin-styled-components, gatsby-remark-autolink-headers, gatsby-remark-copy-linked-files, gatsby-remark-images, gatsby-remark-prismjs, gatsby-remark-responsive-iframe, gatsby-source-filesystem, gatsby-transformer-json)
  • Update react monorepo to v18 (major) (react, react-dom)
  • Update remark (major) (remark-cli, remark-preset-lint-recommended)
  • Update yargs packages to v21 (major) (@types/yargs-parser, yargs-parser)
  • ๐Ÿ” Create all pending approval PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @types/node 14.18.33
  • beachball 2.31.8
  • lerna 5.6.2
  • typescript 4.3.5
packages/flamegrill/package.json
  • concat-stream ^2.0.0
  • flamebearer ^1.1.3
  • n-readlines ^1.0.0
  • puppeteer ^1.13.0
  • yargs-parser ^13.1.0
  • @types/concat-stream 1.6.1
  • @types/jest 26.0.24
  • @types/puppeteer 1.20.10
  • @types/tmp 0.2.3
  • @types/yargs-parser 13.1.0
  • jest 26.6.3
  • tmp 0.2.1
  • ts-jest 26.5.6
packages/website/package.json
  • babel-plugin-lodash ^3.2.11
  • babel-plugin-styled-components ^1.10.1
  • gatsby ^2.10.0
  • gatsby-link ^2.2.0
  • gatsby-plugin-google-fonts ^1.0.1
  • gatsby-plugin-manifest ^2.2.0
  • gatsby-plugin-nprogress ^2.1.0
  • gatsby-plugin-offline ^2.2.0
  • gatsby-plugin-react-helmet ^3.1.0
  • gatsby-plugin-react-svg ^2.1.1
  • gatsby-plugin-remove-trailing-slashes ^2.1.7
  • gatsby-plugin-sharp ^2.2.1
  • gatsby-plugin-sitemap ^2.2.0
  • gatsby-plugin-styled-components ^3.1.0
  • gatsby-remark-autolink-headers ^2.1.0
  • gatsby-remark-copy-linked-files ^2.1.0
  • gatsby-remark-images ^3.1.0
  • gatsby-remark-prismjs ^3.3.0
  • gatsby-remark-responsive-iframe ^2.2.0
  • gatsby-source-filesystem ^2.1.0
  • gatsby-transformer-json ^2.2.0
  • gatsby-transformer-remark ^2.5.0
  • lodash ^4.17.4
  • lodash-webpack-plugin ^0.11.4
  • prismjs ^1.16.0
  • react ^16.8.6
  • react-dom ^16.8.6
  • react-helmet ^5.1.3
  • react-icons ^3.7.0
  • react-share ^3.0.0
  • styled-components ^4.3.2
  • cli-glob 0.1.0
  • ncp 2.0.0
  • remark-cli 6.0.1
  • remark-preset-lint-recommended 3.0.4
  • rimraf 3.0.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.