I added "*#PROFILEME" to "profile these" and then went to
http://10.0.3.102/moodle/#PROFILEME. I didn't get any profile for the
page... It does work if I use continuous profiling with profile these as * but I want to limit results so I can test on the actual server and load.
I'm also not sure how to use the selective profiling option. When I go to
http://10.0.3.102/moodle&PROFILEME
I get a 404 not found error.
The instructions leave PGC ambiguous.
If you enable this setting, then, selectively, you can use the PROFILEME
parameter anywhere (PGC) and profiling for that script will happen.
Analogously, you can use the DONTPROFILEME parameter to prevent
profiling to happen
Any ideas what I'm doing wrong?
Yes, I agree that PGC is ambiguous at a glance. However, it's a something you may also see in PHP configs, so someone familiar with PHP configuration may be familiar with it.
That said, each of the letters stand for POST, GET, COOKIE - IE these are the places where the variable can be set.
To set it correctly on the GET string, use the following syntax:
http://10.0.3.102/moodle?PROFILEME
Note the use of the question mark to specifiy the start of the get parameters. Alternatively, you can add it to a page with existing get parameters:
http://10.0.3.102/moodle/course/view.php?id=23&PROFILEME
Again note the ampersand as it's not the first element in the get string.
I hope that's helpful!
Makes perfect sense now, thanks!