HARviewer: View HAR object

Description Usage Arguments Value Examples

View source: R/HARviewer.R

Description

Create a waterfall view of a HAR object

Usage

1
2
HARviewer(har, width = NULL, height = NULL, elementId = NULL,
  showAlignmentHelpers = TRUE, showIndicatorIcons = TRUE)

Arguments

har

A parsed har object output from readHAR

width

Optional width of the HAR viewer

height

Optional height of the HAR viewer

elementId

Optional element id to assign to the HAR viewer

showAlignmentHelpers

Show verticale lines to easier spot potential dependencies/blocking between requests

showIndicatorIcons

Show warning icons for potential issues on the left

Value

Returns a createWidget object. A waterfall of the HAR using the PerfCascade JavaScript library.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
har <- readHAR(system.file(package = "HARtools", "exdata",
                           "r-project.org.161028_W2_11MA.har"))
hv <- HARviewer(har)
# view in R
hv

# save and view
tFile <- tempfile(fileext = ".html")
htmlwidgets::saveWidget(hv,file = tFile)
browseURL(tFile)

## End(Not run)

johndharrison/HARtools documentation built on May 19, 2019, 4:22 p.m.