Programmatically measure cycles consumption

Hi chenyan, are you aware if it is currently possible to locally enable canister profiling in Candid UI with the new (0.10.x) dfx release?