X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab%2Fincludes%2Fplc_functions.php;h=a05fdd9cd5395e639f476891648e5a19c7f342ce;hb=f831adeb944ad788c6091d561917a154112583eb;hp=f007cda3cfdf5da3700f4b4398af6cb72b7dbc2d;hpb=fa425f537d2e4aced1a2362672791aed274dd903;p=plewww.git diff --git a/planetlab/includes/plc_functions.php b/planetlab/includes/plc_functions.php index f007cda..a05fdd9 100644 --- a/planetlab/includes/plc_functions.php +++ b/planetlab/includes/plc_functions.php @@ -1,6 +1,7 @@ "; } +function plc_debug_txt ($message,$txt) { + print "
" . $message . "
";
+  $txt=str_replace(" ","<SPC>",$txt);
+  $txt=str_replace("\t","<TAB>",$txt);
+  $txt=str_replace("\n","<LF>",$txt);
+  $txt=str_replace("\r","<CR>",$txt);
+  print $txt . "<EOF>";
+  print "
"; +} + $plc_prof_start=0.; $plc_prof_time=0.; $plc_prof_counter=0;