Lines Matching refs:last
178 last = last_state.get("/proc/stat:cpu", "").split()
180 if last and next:
181 stime = sum([int(next[x]) - int(last[x]) for x in [2, 5, 6]])
182 utime = sum([int(next[x]) - int(last[x]) for x in [0, 1]])
183 idle = sum([int(next[x]) - int(last[x]) for x in [3, 4]])
227 last = int(last_state.get(key, -1))
229 if last != -1 and next != -1:
231 total_time += next - last
232 total_cycles += (next - last) * speed
263 last = int(last_state.get("/proc/stat:ctxt", -1))
265 if last != -1 and next != -1: context_switches[when] = next - last
306 last = last_state.get(key, zero_stat).split()
317 faults = int(next[11]) - int(last[11])
322 stime = int(next[14]) - int(last[14])
323 utime = int(next[13]) - int(last[13])
359 last = int(last_state.get("/proc/binder/stats:BC_TRANSACTION", -1))
361 if last != -1 and next != -1: binder_calls[when] = next - last
397 last = last_state.get(key, "").split()
399 if not (last and next): continue
401 rx = int(next[0]) - int(last[0])
402 tx = int(next[8]) - int(last[8])
452 last = int(last_state.get(key, -1))
454 if last == -1 or next == -1: continue
456 value = next - last
503 last = last_state.get(key, "").split()
505 if not (last and next): continue
507 reads = int(next[2]) - int(last[2])
508 writes = int(next[6]) - int(last[6])
509 msec = int(next[10]) - int(last[10])