Log in to the exact machine type you plan to profile. Counter access differs between sizes on the same cloud.

Run perf stat -e cycles,instructions sleep 1. The Linux perf tool asks the PMU for two basic counts.

If it prints numbers, the machine shows at least those two counters. A full profile is worth trying there next.

If it says "not supported", the machine hides its counters. You can still run load tests and price per million requests there, but not the diagnosis step.