Moodle  2.2.1
http://www.collinsharper.com
moodle_xhprofrun Class Reference
Inheritance diagram for moodle_xhprofrun:
Collaboration diagram for moodle_xhprofrun:

Public Member Functions

 __construct ()
 get_run ($run_id, $type, &$run_desc)
 save_run ($xhprof_data, $type, $run_id=null)
 prepare_run ($url)

Protected Member Functions

 sum_calls ($sum, $data)

Protected Attributes

 $runid = null
 $url = null
 $totalexecutiontime = 0
 $totalcputime = 0
 $totalcalls = 0
 $totalmemory = 0
 $timecreated = 0

Detailed Description

Custom implementation of iXHProfRuns

This class is one implementation of the iXHProfRuns interface, in charge of storing and retrieve profiling run data to/from DB (profiling table)

The interface only defines two methods to be defined: get_run() and save_run() we'll be implementing some more in order to keep all the rest of information in our runs properly handled.

Definition at line 421 of file xhprof_moodle.php.


Constructor & Destructor Documentation

Definition at line 431 of file xhprof_moodle.php.


Member Function Documentation

get_run ( run_id,
type,
&$  run_desc 
)

Given one runid and one type, return the run data and some extra info in run_desc from DB

Note that $type is completely ignored

Implements iXHProfRuns.

Definition at line 441 of file xhprof_moodle.php.

Here is the call graph for this function:

prepare_run ( url)

Definition at line 496 of file xhprof_moodle.php.

save_run ( xhprof_data,
type,
run_id = null 
)

Given some run data, one type and, optionally, one runid store the information in DB

Note that $type is completely ignored

Implements iXHProfRuns.

Definition at line 465 of file xhprof_moodle.php.

Here is the call graph for this function:

sum_calls ( sum,
data 
) [protected]

Definition at line 502 of file xhprof_moodle.php.


Field Documentation

$runid = null [protected]

Definition at line 423 of file xhprof_moodle.php.

$timecreated = 0 [protected]

Definition at line 429 of file xhprof_moodle.php.

$totalcalls = 0 [protected]

Definition at line 427 of file xhprof_moodle.php.

$totalcputime = 0 [protected]

Definition at line 426 of file xhprof_moodle.php.

$totalexecutiontime = 0 [protected]

Definition at line 425 of file xhprof_moodle.php.

$totalmemory = 0 [protected]

Definition at line 428 of file xhprof_moodle.php.

$url = null [protected]

Definition at line 424 of file xhprof_moodle.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations