R/highlight.R

Defines functions highlightPatterns

# A list of regexes to highlight on the flamegraph. The name of each sublist is
# the CSS class to give to cells whose labels match the regex listed. For each
# of these names, there should be a corresponding CSS class in profvis.css.
highlightPatterns <- function() {
  list(
    output = list("^output\\$"),
    gc = list("^<GC>$"),
    stacktrace = list("^\\.\\.stacktraceo(n|ff)\\.\\.$")
  )
}
rstudio/profvis documentation built on May 4, 2023, 10:24 a.m.