Class for profiling requests.
This resources requires that you have the xhprof module enabled on your Apache web server. It's also easiest to use when you have the mod rewrite module enabled Syntax LudoDBProfiling/resourceToProfile/arg1/arg2/resourceServiceToProfile/profile i.e first argument is LudoDBProfiling and last argument should be profile. The arguments in between is the request you want to profile, example
http://localhost/LudoDBProfiling/Person/1/read/profile
package | LudoDB |
---|
__construct()
end() : null | string
null
string
getOnSuccessMessageFor(String $service) : String
String
String
getTimeUsage() : mixed
mixed
getValidServices() : array
array
profile(array $data) : array
shouldCache($service) : bool
When true a serialized version of LudoDBModel::read will be stored in a caching table. When caching is enabled, you should also implement clearCache() to clear cache in case Data has been changed.
bool
validateArguments(String $service, Array $arguments) : bool
String
Array
bool
validateServiceData(string $service, array $data) : bool
string
array
bool
getPath() : string
string
$arguments : array
$name : string
$start : int