• Home
  • Raw
  • Download

Lines Matching refs:props

78 func (props *PgoProperties) isInstrumentation() bool {
79 return props.Pgo.Instrumentation != nil && *props.Pgo.Instrumentation == true
82 func (props *PgoProperties) isSampling() bool {
83 return props.Pgo.Sampling != nil && *props.Pgo.Sampling == true
86 func (pgo *pgo) props() []interface{} { func
90 func (props *PgoProperties) addInstrumentationProfileGatherFlags(ctx ModuleContext, flags Flags) Fl…
92 if props.ShouldProfileModule {
93 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
99 func (props *PgoProperties) addSamplingProfileGatherFlags(ctx ModuleContext, flags Flags) Flags {
100 flags.Local.CFlags = append(flags.Local.CFlags, props.Pgo.Cflags...)
104 func (props *PgoProperties) getPgoProfileFile(ctx BaseModuleContext) android.OptionalPath {
105 profileFile := *props.Pgo.Profile_file
136 missing := *props.Pgo.Profile_file + ":" + ctx.ModuleDir() + "/Android.bp:" + ctx.ModuleName()
142 func (props *PgoProperties) profileUseFlag(ctx ModuleContext, file string) string {
143 if props.isInstrumentation() {
146 if props.isSampling() {
152 func (props *PgoProperties) profileUseFlags(ctx ModuleContext, file string) []string {
153 flags := []string{props.profileUseFlag(ctx, file)}
158 func (props *PgoProperties) addProfileUseFlags(ctx ModuleContext, flags Flags) Flags {
160 if !props.PgoPresent {
164 if props.PgoCompile {
165 profileFile := props.getPgoProfileFile(ctx)
167 profileUseFlags := props.profileUseFlags(ctx, profileFilePath.String())
177 if props.isSampling() {
184 func (props *PgoProperties) isPGO(ctx BaseModuleContext) bool {
185 isInstrumentation := props.isInstrumentation()
186 isSampling := props.isSampling()
189 filePresent := props.Pgo.Profile_file != nil
190 benchmarksPresent := len(props.Pgo.Benchmarks) > 0
311 props := pgo.Properties
313 if (props.ShouldProfileModule && props.isInstrumentation()) || props.PgoInstrLink {
315 return props.addInstrumentationProfileGatherFlags(ctx, flags)
316 } else if props.ShouldProfileModule && props.isSampling() {
317 flags = props.addSamplingProfileGatherFlags(ctx, flags)
319 flags = props.addSamplingProfileGatherFlags(ctx, flags)
323 flags = props.addProfileUseFlags(ctx, flags)