Plugin Directory

Changeset 217767


Ignore:
Timestamp:
03/15/2010 04:32:30 PM (16 years ago)
Author:
anukit
Message:

testing memory usage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclopress/branches/cp2/classes/cy_google_charts.php

    r217765 r217767  
    8585     */
    8686    function build_chart(&$chart) {
    87            
     87       
     88        echo 'build_chart: ' . memory_get_usage() . '</br >';
     89       
    8890        global $wpdb;
    8991        $table_name = $wpdb->prefix . "cy_rides";
     
    120122        // send off to google and cache the images
    121123        // check if it's a line chart or a bar chart and retrieve the right one
     124       
    122125        $chart->url = $this->get_line_chart($x_data, $y_data, false, true);
    123126        $chart->thumb_url = $this->get_line_chart($x_data, $y_data, true, true);
     
    125128        // save the chart's new hash and url
    126129        $chart->save();
     130       
     131        echo 'build_chart done: ' . memory_get_usage() . '</br >';
    127132       
    128133        return $chart->url;
     
    141146     */
    142147    public function get_line_chart(&$x_data, &$y_data, $is_thumb=false, $is_by_date=true) {
     148       
     149        echo 'get_line_chart: ' . memory_get_usage() . '</br >';
    143150       
    144151        // no data? get out of here...
Note: See TracChangeset for help on using the changeset viewer.