% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/debrief.R
\name{pv_debrief}
\alias{pv_debrief}
\title{Comprehensive profiling data}
\usage{
pv_debrief(x, n = 10)
}
\arguments{
\item{x}{A profvis object from \code{\link[profvis:profvis]{profvis::profvis()}}.}

\item{n}{Maximum number of items to include in each category (default 10).}
}
\value{
A list containing:
\itemize{
\item \code{total_time_ms}: Total profiling time in milliseconds
\item \code{total_samples}: Number of profiling samples
\item \code{interval_ms}: Sampling interval in milliseconds
\item \code{has_source}: Whether source references are available
\item \code{self_time}: Data frame of functions by self-time
\item \code{total_time}: Data frame of functions by total time
\item \code{hot_lines}: Data frame of hot source lines (or NULL if no source refs)
\item \code{hot_paths}: Data frame of hot call paths
\item \code{suggestions}: Data frame of optimization suggestions
\item \code{gc_pressure}: Data frame of GC pressure analysis
\item \code{memory}: Data frame of memory allocation by function
\item \code{memory_lines}: Data frame of memory allocation by line (or NULL)
}
}
\description{
Returns all profiling analysis in a single list for programmatic access.
This is the primary function for AI agents and scripts that need
comprehensive profiling data without printed output.
}
\examples{
p <- pv_example()
d <- pv_debrief(p)
names(d)
d$self_time
}
