Options are the formatting and filtering options used to generate a profile.
| 54 | // Options are the formatting and filtering options used to generate a |
| 55 | // profile. |
| 56 | type Options struct { |
| 57 | OutputFormat int |
| 58 | |
| 59 | CumSort bool |
| 60 | CallTree bool |
| 61 | DropNegative bool |
| 62 | CompactLabels bool |
| 63 | Ratio float64 |
| 64 | Title string |
| 65 | ProfileLabels []string |
| 66 | ActiveFilters []string |
| 67 | NumLabelUnits map[string]string |
| 68 | |
| 69 | NodeCount int |
| 70 | NodeFraction float64 |
| 71 | EdgeFraction float64 |
| 72 | |
| 73 | SampleValue func(s []int64) int64 |
| 74 | SampleMeanDivisor func(s []int64) int64 |
| 75 | SampleType string |
| 76 | SampleUnit string // Unit for the sample data from the profile. |
| 77 | |
| 78 | OutputUnit string // Units for data formatting in report. |
| 79 | |
| 80 | Symbol *regexp.Regexp // Symbols to include on disassembly report. |
| 81 | SourcePath string // Search path for source files. |
| 82 | TrimPath string // Paths to trim from source file paths. |
| 83 | |
| 84 | IntelSyntax bool // Whether or not to print assembly in Intel syntax. |
| 85 | } |
| 86 | |
| 87 | // Generate generates a report as directed by the Report. |
| 88 | func Generate(w io.Writer, rpt *Report, obj plugin.ObjTool) error { |
nothing calls this directly
no outgoing calls
no test coverage detected