% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hot-lines.R
\name{pv_worst_line}
\alias{pv_worst_line}
\title{Get the single hottest line}
\usage{
pv_worst_line(x, context = 5)
}
\arguments{
\item{x}{A profvis object.}

\item{context}{Number of source lines to include before and after.}
}
\value{
A list with:
\itemize{
\item \code{location}: File path and line number (e.g., "R/foo.R:42")
\item \code{label}: Function name
\item \code{filename}: Source file path
\item \code{linenum}: Line number
\item \code{time_ms}: Time in milliseconds
\item \code{pct}: Percentage of total time
\item \code{code}: The source line
\item \code{context}: Vector of surrounding source lines
\item \code{callers}: Data frame of functions that call this location
}

Returns \code{NULL} if no source references are available.
}
\description{
Returns the hottest source line with full context. Useful for quickly
identifying the #1 optimization target.
}
\examples{
p <- pv_example()
pv_worst_line(p)
}
