more profiling detritus

Conflicts:
	v/raft.c
This commit is contained in:
~hatteb-mitlyd 2014-05-30 11:09:47 -07:00
parent 695e7beee9
commit f97058f0b8
2 changed files with 23 additions and 4 deletions

View File

@ -698,6 +698,14 @@ void
u2_tx_slog(u2_ray wir_r,
u2_noun luf) // retain
{
#if 0
struct timeval t;
static struct timeval p;
struct timeval d;
gettimeofday(&t, 0);
timersub(&t, &p, &d);
printf("%ld.%d ", d.tv_sec, d.tv_usec);
#endif
{
if ( u2_yes == u2du(luf) ) {
u2_noun pri = u2h(luf);
@ -710,6 +718,9 @@ u2_tx_slog(u2_ray wir_r,
u2_lo_tank(0, u2k(u2t(luf)));
}
}
#if 0
p = t;
#endif
}
/* u2_tx_warn(): report a warning by internal file and line.

View File

@ -1535,12 +1535,12 @@ _raft_lame(u2_reck* rec_u, u2_noun ovo, u2_noun why, u2_noun tan)
static void
_raft_punk(u2_reck* rec_u, u2_noun ovo)
{
// c3_c* txt_c = u2_cr_string(u2h(u2t(ovo)));
// c3_c* txt_c = u2_cr_string(u2h(u2t(ovo)));
c3_w sec_w;
// static c3_w num_w;
// static c3_w num_w;
u2_noun gon;
// uL(fprintf(uH, "punk: %s: %d\n", u2_cr_string(u2h(u2t(ovo))), num_w++));
// uL(fprintf(uH, "punk: %s: %d\n", u2_cr_string(u2h(u2t(ovo))), num_w++));
// XX this is wrong - the timer should be on the original hose.
//
@ -1555,8 +1555,15 @@ _raft_punk(u2_reck* rec_u, u2_noun ovo)
u2_Host.beh_u.run_w = 0;
}
// struct timeval b4, f2, d0;
// gettimeofday(&b4, 0);
gon = u2_lo_soft(rec_u, sec_w, u2_reck_poke, u2k(ovo));
// gettimeofday(&f2, 0);
// timersub(&f2, &b4, &d0);
// uL(fprintf(uH, "%%punk %ld.%d\n", d0.tv_sec, d0.tv_usec));
if ( u2_blip != u2h(gon) ) {
u2_noun why = u2k(u2h(gon));
u2_noun tan = u2k(u2t(gon));
@ -1587,7 +1594,8 @@ _raft_punk(u2_reck* rec_u, u2_noun ovo)
_raft_sure(rec_u, ovo, vir, cor);
}
}
// uL(fprintf(uH, "punk oot %s\n", txt_c));
// uL(fprintf(uH, "punk oot %s\n", txt_c));
// free(txt_c);
}
static void