/* * Clear the work area, move the cursor there after setting marker */ void to_work(RING * gbl, int clear_it) { markC(gbl, TRUE); if (clear_it) clear_work(); }
/* * Display all files in the current screen (all viewports), and then show the * remaining stuff on the screen (position in each viewport and workspace * marker). */ void showFILES(RING * gbl, int reset_cols) { unsigned current = curview; int j; unsigned k; TRACE(("showFILES(%s,%d)\n", gbl->new_wd, reset_cols)); if (reset_cols) for (j = 0; j < CCOL_MAX; j++) gbl->cmdcol[j] = 0; save_view(gbl); for (k = 0; k < maxview; k++) { show_view(vue->gbl); if (maxview > 1) { if (vue->gbl != viewlist[current].gbl) show_what(vue); next_view(); } } showMARK(gbl->Xbase); clear_work(); showC(gbl); TRACE(("...done showFILES\n")); }
void end_process_data(void) { report_utilization("cpu-consumption", total_cpu_time()); report_utilization("cpu-wakeups", total_wakeups()); report_utilization("gpu-operations", total_gpu_ops()); report_utilization("disk-operations", total_disk_hits()); report_utilization("disk-operations-hard", total_hard_disk_hits()); report_utilization("xwakes", total_xwakes()); all_power.erase(all_power.begin(), all_power.end()); clear_processes(); clear_proc_devices(); clear_interrupts(); clear_timers(); clear_work(); clear_consumers(); perf_events->clear(); }