• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

chrome-http2-log-parser

This repo contains a module for parsing the output of Chrome's HTTP/2 net-internals and turning it into something more useful.

Installation

npm install chrome-http2-log-parser

Try it

node test

CLI

$ chrome-http2-log-parser --help
  
  Usage
    $ chrome-http2-log-parser

  Options
    -f, --file  file path containing the output of Chrome HTTP/2 net-internals log
    --reporter  html, generate a html table representing the parsed log data
    --interval  the resolution in milliseconds of the report

  Examples
    $ chrome-http2-log-parser --file=./test/fixtures/session.txt --reporter=html --interval=5

API Usage

Given a file session.txt gathered from chrome://net-internals/#export that contains the output of the Chrome HTTP/2 net-internals log, and given that it is a sibling of the file report.js that contains the following code:

var path = require('path');

var parser = require('chrome-http2-log-parser');

parser(path.resolve(__dirname, './session.txt'), {
  reporters: [
    'html'
  ],
  // the resolution, in milliseconds, of the report
  interval: 20
}, function (err, data) {
  if (err) {
    throw err;
  }

  // an array of objects representing the records in the log
  console.log(data.records);

  // an object with an property for each stream id; the value of
  // the property is an array of objects associated with the stream id,
  // in the order in which they appeared in the log
  console.log(data.streams);

  // the output of the html reporter
  console.log(data.reports.html);
});

Run node report to see the data parsed from the log.

Reporters

html

Generates an HTML table representing the parsed log data.

Screenshot: image

More Repositories

1

js-assessment

A test-driven approach to assessing JS skills
JavaScript
5,148
star
2

jqfundamentals

Code repository for jQuery Fundamentals training
JavaScript
1,170
star
3

srchr-demo

JavaScript
150
star
4

js-assessment-answers

JavaScript
125
star
5

testable-javascript

JavaScript
118
star
6

dojo-demo

Using the Dojo Toolkit for MVC JavaScript applications
JavaScript
56
star
7

srchr

A crowdsourced JavaScript exercise
43
star
8

ffco

Functionality-Focused Code Organization
JavaScript
43
star
9

bvjs

JavaScript
41
star
10

js-minty-fresh

JavaScript
29
star
11

large-jquery-apps

Demo for jQuery code org talk
JavaScript
26
star
12

dojo-scaffold

Scaffolding a Buildable Dojo Application
JavaScript
22
star
13

frontend-dev-baseline

JavaScript
17
star
14

refactor-jquery

Cleaner, Leaner, Meaner: Refactoring Your jQuery
JavaScript
17
star
15

jquery-module

Module creation and loading for jQuery
JavaScript
16
star
16

dotfiles

Vim Script
16
star
17

js-testing-boilerplates

JavaScript
15
star
18

object-literals

Object Literals Example Code
JavaScript
14
star
19

jQuery-201

JavaScript
9
star
20

johnny-five-projects

JavaScript
9
star
21

dojo-sandbox

Sandbox for Dojo presentations
JavaScript
8
star
22

mulberry

Home of Toura Mulberry, tools and a framework for quickly producing cross-platform mobile applications using Javascript, HTML, CSS, and PhoneGap
JavaScript
8
star
23

txjs-site

Website for TXJS
PHP
7
star
24

srchr-ember

srchr-ember
JavaScript
6
star
25

rmurphey.github.com

HTML
6
star
26

responsive-ui

Delivering a Responsive UI
5
star
27

blog-octopress

JavaScript
5
star
28

js-games

JavaScript
5
star
29

ttlpodcast.com

CSS
5
star
30

arduino-display

JavaScript
4
star
31

jQuery-Fundamentals-Temp

JavaScript
4
star
32

dojo-transformers

A Dojo demo centered around transformers
JavaScript
3
star
33

ffconf-mulberry-demo

JavaScript
3
star
34

js-sandbox

JavaScript
3
star
35

dojo-boilerplate

3
star
36

olivercam

JavaScript
3
star
37

mustache-cats

Mulberry app for Cats with Mustaches!
JavaScript
2
star
38

sandbox

2
star
39

blog-jekyll

Ruby
2
star
40

mulberry-demos

Demo apps for mulberry
JavaScript
2
star
41

jmvc-sandbox

Sandbox for JavaScriptMVC demos
2
star
42

project-euler

My (undoubtedly sub-optimal) answers to the Project Euler questions
Ruby
2
star
43

flitter

test csv data against yaml-specified conditions
Ruby
1
star
44

shoppingbot

JavaScript
1
star
45

wtf3pjs

JavaScript
1
star
46

js-games-server

JavaScript
1
star