Commit 67673ae2 authored by David Anderson's avatar David Anderson

Manager: show executable filename in task properties

parent 8cd8c8e7
......@@ -407,6 +407,9 @@ void CDlgItemProperties::renderInfos(RESULT* result) {
addProperty(_("CPU time"), FormatTime(result->final_cpu_time));
addProperty(_("Elapsed time"), FormatTime(result->final_elapsed_time));
}
if (avp) {
addProperty(_("Executable"), wxString(avp->exec_filename, wxConvUTF8));
m_gbSizer->Layout();
m_scrolledWindow->FitInside();
}
......
......@@ -209,6 +209,7 @@ struct APP_VERSION {
double natis;
double gpu_ram;
double flops;
char exec_filename[256];
APP* app;
PROJECT* project;
......@@ -216,6 +217,7 @@ struct APP_VERSION {
int parse(XML_PARSER&);
int parse_coproc(XML_PARSER&);
int parse_file_ref(XML_PARSER&);
void print();
void clear();
};
......
......@@ -68,6 +68,7 @@
#include "diagnostics.h"
#include "parse.h"
#include "str_util.h"
#include "str_replace.h"
#include "util.h"
#include "error_numbers.h"
#include "miofile.h"
......@@ -536,6 +537,22 @@ int APP_VERSION::parse_coproc(XML_PARSER& xp) {
return ERR_XML_PARSE;
}
int APP_VERSION::parse_file_ref(XML_PARSER& xp) {
bool is_main = false;
char buf[1024];
while (!xp.get_tag()) {
if (xp.match_tag("/file_ref")) {
if (is_main) {
strlcpy(exec_filename, buf, sizeof(exec_filename));
}
return 0;
}
if (xp.parse_str("file_name", buf, sizeof(buf))) continue;
if (xp.parse_bool("main_program", is_main)) continue;
}
return ERR_XML_PARSE;
}
int APP_VERSION::parse(XML_PARSER& xp) {
clear();
while (!xp.get_tag()) {
......@@ -551,6 +568,10 @@ int APP_VERSION::parse(XML_PARSER& xp) {
parse_coproc(xp);
continue;
}
if (xp.match_tag("file_ref")) {
parse_file_ref(xp);
continue;
}
}
return ERR_XML_PARSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment