% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/focus.R
\name{pv_focus}
\alias{pv_focus}
\title{Focused analysis of a specific function}
\usage{
pv_focus(x, func, context = 5)
}
\arguments{
\item{x}{A profvis object.}

\item{func}{The function name to analyze.}

\item{context}{Number of source lines to show around hotspots.}
}
\value{
Invisibly returns a \code{debrief_focus} object. Use
\code{capture.output()} to capture the formatted text output.
}
\description{
Provides a comprehensive analysis of a single function including time
breakdown, callers, callees, and source context if available.
}
\examples{
p <- pv_example()
pv_focus(p, "inner")
}
