Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boinccmd: show CPU/GPU resources in --get_task #2327

Merged
merged 1 commit into from
Jan 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 26 additions & 15 deletions lib/gui_rpc_client_print.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,26 +160,37 @@ void RESULT::print() {
foo = (time_t)report_deadline;
printf(" report deadline: %s", ctime(&foo));
printf(" ready to report: %s\n", ready_to_report?"yes":"no");
printf(" got server ack: %s\n", got_server_ack?"yes":"no");
Copy link
Member

@TheAspens TheAspens Jan 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was the line
printf(" got server ack: %s\n", got_server_ack?"yes":"no");
intentionally dropped?

printf(" final CPU time: %f\n", final_cpu_time);
printf(" state: %s\n", result_client_state_string(state));
printf(" scheduler state: %s\n", result_scheduler_state_string(scheduler_state));
printf(" exit_status: %d\n", exit_status);
printf(" signal: %d\n", signal);
printf(" suspended via GUI: %s\n", suspended_via_gui?"yes":"no");
printf(" active_task_state: %s\n", active_task_state_string(active_task_state));
//printf(" stderr_out: %s\n", stderr_out.c_str());
printf(" app version num: %d\n", app_version_num);
printf(" checkpoint CPU time: %f\n", checkpoint_cpu_time);
printf(" current CPU time: %f\n", current_cpu_time);
printf(" fraction done: %f\n", fraction_done);
printf(" swap size: %.0f MB\n", swap_size/MEGA);
printf(" working set size: %.0f MB\n", working_set_size_smoothed/MEGA);
printf(" estimated CPU time remaining: %f\n", estimated_cpu_time_remaining);
if (bytes_sent || bytes_received) {
printf(" bytes sent: %.0f received: %.0f\n",
bytes_sent, bytes_received
);
printf(" resources: %s\n", strlen(resources)?resources:"1 CPU");

// stuff for jobs that are running or have run
//
if (scheduler_state > CPU_SCHED_UNINITIALIZED) {
printf(" CPU time at last checkpoint: %f\n", checkpoint_cpu_time);
printf(" current CPU time: %f\n", current_cpu_time);
printf(" estimated CPU time remaining: %f\n", estimated_cpu_time_remaining);
printf(" fraction done: %f\n", fraction_done);
printf(" swap size: %.0f MB\n", swap_size/MEGA);
printf(" working set size: %.0f MB\n", working_set_size_smoothed/MEGA);
if (bytes_sent || bytes_received) {
printf(" bytes sent: %.0f received: %.0f\n",
bytes_sent, bytes_received
);
}
printf(" suspended via GUI: %s\n", suspended_via_gui?"yes":"no");
}

// stuff for completed jobs
//
if (state > RESULT_FILES_DOWNLOADED) {
printf(" final CPU time: %f\n", final_cpu_time);
printf(" final elapsed time: %f\n", final_elapsed_time);
printf(" exit_status: %d\n", exit_status);
printf(" signal: %d\n", signal);
}
}

Expand Down