Documentation ¶
Overview ¶
Package frontend contains the Go code that servers the Perf web UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
Frontend is the server for the Perf web UI.
func New ¶
func New(flags *config.FrontendFlags) (*Frontend, error)
New returns a new Frontend instance.
func (*Frontend) GetHandler ¶
GetHandler creates the http.Handler for all supported endpoints.
func (*Frontend) RoleEnforcedHandler ¶
type SkPerfConfig ¶
type SkPerfConfig struct { Radius int `json:"radius"` // The number of commits when doing clustering. KeyOrder []string `json:"key_order"` // The order of the keys to appear first in query-sk elements. NumShift int `json:"num_shift"` // The number of commits the shift navigation buttons should jump. Interesting float32 `json:"interesting"` // The threshold for a cluster to be interesting. StepUpOnly bool `json:"step_up_only"` // If true then only regressions that are a step up are displayed. CommitRangeURL string `json:"commit_range_url"` // A URI Template to be used for expanding details on a range of commits. See cluster-summary2-sk. Demo bool `json:"demo"` // True if this is a demo page, as opposed to being in production. Used to make puppeteer tests deterministic. DisplayGroupBy bool `json:"display_group_by"` // True if the Group By section of Alert config should be displayed. HideListOfCommitsOnExplore bool `json:"hide_list_of_commits_on_explore"` // True if the commit-detail-panel-sk element on the Explore details tab should be hidden. Notifications notifytypes.Type `json:"notifications"` // The type of notifications that can be sent. FetchChromePerfAnomalies bool `json:"fetch_chrome_perf_anomalies"` // If true explore-sk will show the bisect button FeedbackURL string `json:"feedback_url"` // The URL for the Provide Feedback link ChatURL string `json:"chat_url"` // The URL for the Ask the Team link HelpURLOverride string `json:"help_url_override"` // If specified, this URL will override the help link TraceFormat config.TraceFormat `json:"trace_format"` // Trace formatter to use NeedAlertAction bool `json:"need_alert_action"` // Action to take for the alert. BugHostURL string `json:"bug_host_url"` // The URL for the bug host for the instance. GitRepoUrl string `json:"git_repo_url"` // The URL for the associated git repo. KeysForCommitRange []string `json:"keys_for_commit_range"` // The link keys for commit range url display of individual points. ImageTag string `json:"image_tag"` // The image tag that the running instance is built from, typically a git commit hash. }
SkPerfConfig is the configuration data that will appear in Javascript under the window.perf variable.
Click to show internal directories.
Click to hide internal directories.