Commit 77d35b36a683d2f2c75f8ff012f268a2b45ec9b1

Authored by Cédric RICARD
1 parent ac9a5381

adding perf logs...

Showing 1 changed file with 2 additions and 4 deletions   Show diff stats
calexium_lib/web/CXM_multihost_http_server.anubis
@@ -499,15 +499,12 @@ define String @@ -499,15 +499,12 @@ define String
499 499
500 500
501 variable UTime t0 = utime(0,0). 501 variable UTime t0 = utime(0,0).
502 -//variable Int32 t0_s = 0.  
503 -//variable Int32 t0_us = 0.  
504 502
505 define One 503 define One
506 print_delta 504 print_delta
507 ( 505 (
508 String txt 506 String txt
509 ) = 507 ) =
510 -// with t0 = utime(t0_s, t0_us)  
511 println(utime_to_string((UTime)now - *t0) + " : " + txt). 508 println(utime_to_string((UTime)now - *t0) + " : " + txt).
512 509
513 510
@@ -2974,7 +2971,8 @@ define One @@ -2974,7 +2971,8 @@ define One
2974 if read_http_headers(connection,start_time+*hd_v,dos) is 2971 if read_http_headers(connection,start_time+*hd_v,dos) is
2975 { 2972 {
2976 error(msg) then print(format(msg)), 2973 error(msg) then print(format(msg)),
2977 - ok(headers) then if get_site(headers,sites) is 2974 + ok(headers) then print_delta("read_http_headers");
  2975 + if get_site(headers,sites) is
2978 { 2976 {
2979 failure then unique, 2977 failure then unique,
2980 success(p) then if p is (host_name,desc) then 2978 success(p) then if p is (host_name,desc) then