These standards have to be met in order for any criminal prosecution to continue. It’s said to be an exercise of quasi-judicial discretion. Some will find the “Scope of Policy” section of interest.
https://www.attorneygeneral.jus.gov.on.ca/english/crim/cpm/2005/ChargeScreening.pdf