Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0b993216 authored by Yi Kong's avatar Yi Kong
Browse files

Support sampling PGO profiles

Bug: 79161490
Test: build and flash with ETM generated sampling profile
Change-Id: I82bf61ebfc9f1a1c74a370f0421c46862dd470db
parent c4cea76c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -210,11 +210,6 @@ func (props *PgoProperties) isPGO(ctx BaseModuleContext) bool {
		ctx.ModuleErrorf("PGO specification is missing properties: " + missingProps)
	}

	// Sampling not supported yet
	if isSampling {
		ctx.PropertyErrorf("pgo.sampling", "\"sampling\" is not supported yet)")
	}

	if isSampling && isInstrumentation {
		ctx.PropertyErrorf("pgo", "Exactly one of \"instrumentation\" and \"sampling\" properties must be set")
	}