% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hot-paths.R
\name{pv_hot_paths}
\alias{pv_hot_paths}
\title{Hot call paths}
\usage{
pv_hot_paths(x, n = NULL, include_source = TRUE)
}
\arguments{
\item{x}{A profvis object.}

\item{n}{Maximum number of paths to return. If \code{NULL}, returns all.}

\item{include_source}{If \code{TRUE} and source references are available, include
file:line information in the path labels.}
}
\value{
A data frame with columns:
\itemize{
\item \code{stack}: The call path (functions separated by arrows)
\item \code{samples}: Number of profiling samples with this exact path
\item \code{time_ms}: Time in milliseconds
\item \code{pct}: Percentage of total time
}
}
\description{
Returns the most common complete call stacks. This shows which execution
paths through the code consume the most time.
}
\examples{
p <- pv_example()
pv_hot_paths(p)
}
