% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/memory.R
\name{pv_memory_lines}
\alias{pv_memory_lines}
\title{Memory allocation by source line}
\usage{
pv_memory_lines(x, n = NULL)
}
\arguments{
\item{x}{A profvis object.}

\item{n}{Maximum number of lines to return. If \code{NULL}, returns all.}
}
\value{
A data frame with columns:
\itemize{
\item \code{location}: File path and line number
\item \code{label}: Function name at this location
\item \code{filename}: Source file path
\item \code{linenum}: Line number
\item \code{mem_mb}: Memory allocated in megabytes
}
}
\description{
Returns memory allocation aggregated by source location. Requires source
references (use \code{devtools::load_all()} for best results).
}
\examples{
p <- pv_example()
pv_memory_lines(p)
}
