% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/suggestions.R
\name{pv_suggestions}
\alias{pv_suggestions}
\title{Generate optimization suggestions}
\usage{
pv_suggestions(x)
}
\arguments{
\item{x}{A profvis object.}
}
\value{
A data frame with columns:
\itemize{
\item \code{priority}: 1 (highest) to 5 (lowest)
\item \code{category}: Type of optimization (e.g., "data structure", "algorithm")
\item \code{location}: Where to apply the optimization
\item \code{action}: What to do
\item \code{pattern}: Code pattern to look for (or NA)
\item \code{replacement}: Suggested replacement (or NA)
\item \code{potential_impact}: Estimated time that could be saved
}
}
\description{
Analyzes the profile and generates specific, actionable optimization
suggestions based on detected patterns and hotspots.
}
\examples{
p <- pv_example("gc")
pv_suggestions(p)
}
