Lines Matching refs:props
79 func (props *PgoProperties) isInstrumentation() bool {
80 return props.Pgo.Instrumentation != nil && *props.Pgo.Instrumentation == true
83 func (props *PgoProperties) isSampling() bool {
84 return props.Pgo.Sampling != nil && *props.Pgo.Sampling == true
87 func (pgo *pgo) props() []interface{} { func
91 func (props *PgoProperties) addInstrumentationProfileGatherFlags(ctx ModuleContext, flags Flags) Fl…
92 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
101 func (props *PgoProperties) addSamplingProfileGatherFlags(ctx ModuleContext, flags Flags) Flags {
102 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
109 func (props *PgoProperties) getPgoProfileFile(ctx BaseModuleContext) android.OptionalPath {
110 profile_file := *props.Pgo.Profile_file
141 missing := *props.Pgo.Profile_file + ":" + ctx.ModuleDir() + "/Android.bp:" + ctx.ModuleName()
147 func (props *PgoProperties) profileUseFlag(ctx ModuleContext, file string) string {
148 if props.isInstrumentation() {
151 if props.isSampling() {
157 func (props *PgoProperties) profileUseFlags(ctx ModuleContext, file string) []string {
158 flags := []string{props.profileUseFlag(ctx, file)}
163 func (props *PgoProperties) addProfileUseFlags(ctx ModuleContext, flags Flags) Flags {
165 if !props.PgoPresent {
169 if props.PgoCompile {
170 profileFile := props.getPgoProfileFile(ctx)
172 profileUseFlags := props.profileUseFlags(ctx, profileFilePath.String())
182 if props.isSampling() {
189 func (props *PgoProperties) isPGO(ctx BaseModuleContext) bool {
190 isInstrumentation := props.isInstrumentation()
191 isSampling := props.isSampling()
194 filePresent := props.Pgo.Profile_file != nil
195 benchmarksPresent := len(props.Pgo.Benchmarks) > 0
289 props := pgo.Properties
292 if props.ShouldProfileModule && props.isInstrumentation() {
293 props.addInstrumentationProfileGatherFlags(ctx, flags)
296 } else if props.ShouldProfileModule && props.isSampling() {
297 props.addSamplingProfileGatherFlags(ctx, flags)
299 props.addSamplingProfileGatherFlags(ctx, flags)
303 props.addProfileUseFlags(ctx, flags)