pike.git / lib / modules / Debug.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Debug.pmod/module.pmod:1194: Inside #if constant(Builtin._get_program_layout)
     string get_perf_map(program p, mapping|void m) {    string perf_quote(string s) {    return sprintf("%O", s)[1..<1];    };       if (!m) m = get_program_layout(p);       string pname= sprintf("%O", p);    -  int total = m_delete(m, 0); +  int total_size = m_delete(m, 0);    array k = indices(m), v = values(m), l = allocate(sizeof(k));    int i;       sort(v, k);    -  +  int total = v[0] + total_size; +     for (i = 1; i < sizeof(k); i++) {    l[i-1] = v[i]-v[i-1];    }       if (sizeof(k)) {    l[i-1] = total - v[i-1];    for (i = 0; i < sizeof(v); i++) {    v[i] = ({ v[i], l[i] });    }    object buf = Stdio.Buffer();