initial implementation

@wladekb - could you please turn the spotlights of your eyes onto it? :-)
It's been $wgProfilingDataLogged in the other file... ?? IMHO it won't work