Changeset 17789 for trunk/FACT++/www
- Timestamp:
- 05/07/14 13:44:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/index.php
r17774 r17789 193 193 194 194 $fil['runType'] = trim(fread($file, 80)); 195 if (feof($file)) 196 return header('HTTP/1.0 400 Data not available.'); 197 195 198 $fil['runStart'] = get($file, "d"); 196 199 $fil['runEnd'] = get($file, "d"); … … 328 331 // 376, 720, 91.75 MiB 329 332 330 $rc['startJs'] = microtime(true); 331 $rc['timeJS'] = array(); 333 $internal = file_get_contents("internal.js"); 332 334 333 335 // Buffer output from javascript 334 336 ob_start(); 335 337 338 $rc['timeJS'] = array(); 339 $rc['startJs'] = microtime(true); 340 336 341 try 337 342 { 343 $v8->executeString($internal, 'internal.js'); 338 344 339 345 // We unpack the data pixel by pixel and copy the array directly to the … … 371 377 } 372 378 379 $rc['timeJs'][2] = (microtime(true) - $rc['startJs']); 380 373 381 // Copy output buffer and clean it 374 382 $rc['debug'] = ob_get_contents(); 375 383 ob_end_clean(); 376 377 // Get execution times 378 $now = microtime(true); 379 380 $rc['timeJs'][2] = ($now - $rc['startJs']); 381 } 382 383 $rc['timePhp'] = ($now - $rc['startPhp']); 384 385 $rc['memory'] = memory_get_peak_usage(true)/1024/1024; 384 } 385 386 $rc['memory'] = memory_get_peak_usage(true)/1024/1024; 387 $rc['timePhp'] = (microtime(true) - $rc['startPhp']); 386 388 387 389 //unset($rc['neighbors']);
Note:
See TracChangeset
for help on using the changeset viewer.