% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/example-data.R
\name{pv_example}
\alias{pv_example}
\title{Example profvis data}
\usage{
pv_example(type = c("default", "no_source", "recursive", "gc"))
}
\arguments{
\item{type}{Type of example data to create:
\itemize{
\item \code{"default"}: A real profile captured from example code with source refs
\item \code{"no_source"}: A synthetic profile without source references
\item \code{"recursive"}: A synthetic profile with recursive function calls
\item \code{"gc"}: A synthetic profile with garbage collection pressure
}}
}
\value{
A profvis object that can be used with all debrief functions.
}
\description{
Creates an example profvis object for use in examples and testing.
This avoids the need to run actual profiling code in examples.
}
\examples{
# Get default example data
p <- pv_example()
pv_self_time(p)

# Get example with recursive calls
p_recursive <- pv_example("recursive")
pv_recursive(p_recursive)

}
