gnome-system-monitor-01-solaris.diff revision 16046
15890N/Adiff -Nrup gnome-system-monitor-2.25.91/configure.in gnome-system-monitor-2.25.91.mod/configure.in
15890N/A--- gnome-system-monitor-2.25.91/configure.in 2009-02-17 02:07:36.000000000 +0800
15890N/A+++ gnome-system-monitor-2.25.91.mod/configure.in 2009-03-04 10:31:31.831892000 +0800
6895N/A+dnl CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden -features=extensions $CXXFLAGS"
6895N/Adiff -Nrup gnome-system-monitor-2.25.91/src/load-graph.cpp gnome-system-monitor-2.25.91.mod/src/load-graph.cpp
6895N/A--- gnome-system-monitor-2.25.91/src/load-graph.cpp 2008-08-31 21:29:57.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/load-graph.cpp 2009-03-04 11:26:07.230508000 +0800
6895N/A+ set netlist.flags=1
6895N/A+ existing codes, because when nobody set glibtop_netlist.flags,
6895N/A+ netlist.flags = 1;
6895N/A for (i = 0; i < netlist.number; ++i)
6895N/Adiff -Nrup gnome-system-monitor-2.25.91/src/lsof.cpp gnome-system-monitor-2.25.91.mod/src/lsof.cpp
6895N/A--- gnome-system-monitor-2.25.91/src/lsof.cpp 2008-05-24 05:44:00.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/lsof.cpp 2009-03-04 10:16:57.082704000 +0800
6895N/Adiff -Nrup gnome-system-monitor-2.25.91/src/openfiles.cpp gnome-system-monitor-2.25.91.mod/src/openfiles.cpp
6895N/A--- gnome-system-monitor-2.25.91/src/openfiles.cpp 2008-09-12 03:55:34.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/openfiles.cpp 2009-03-04 11:54:44.460430000 +0800
6895N/Adiff -Nrup gnome-system-monitor-2.25.91/src/prettytable.cpp gnome-system-monitor-2.25.91.mod/src/prettytable.cpp
6895N/A--- gnome-system-monitor-2.25.91/src/prettytable.cpp 2009-01-19 02:01:09.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/prettytable.cpp 2009-03-04 10:17:07.130460000 +0800
14429N/A getters.push_back(&PrettyTable::get_icon_from_name);
14429N/A getters.push_back(&PrettyTable::get_icon_for_kernel);
14429N/A getters.push_back(&PrettyTable::get_icon_dummy);
14429N/Adiff -Nrup gnome-system-monitor-2.25.91/src/procactions.cpp gnome-system-monitor-2.25.91.mod/src/procactions.cpp
14429N/A--- gnome-system-monitor-2.25.91/src/procactions.cpp 2007-01-03 06:15:36.000000000 +0800
14429N/A+++ gnome-system-monitor-2.25.91.mod/src/procactions.cpp 2009-02-22 19:58:20.190256000 +0800
14429N/Adiff -Nrup gnome-system-monitor-2.25.91/src/procdialogs.cpp gnome-system-monitor-2.25.91.mod/src/procdialogs.cpp
15890N/A--- gnome-system-monitor-2.25.91/src/procdialogs.cpp 2008-05-24 05:44:00.000000000 +0800
15890N/A+++ gnome-system-monitor-2.25.91.mod/src/procdialogs.cpp 2009-03-04 10:17:21.908309000 +0800
15890N/A- procman_debug("set %s to %d", this->gconf_key.c_str(), new_value);
14429N/A+ //procman_debug("set %s to %d", this->gconf_key.c_str(), new_value);
15890N/A update = (gfloat) procdata->config.graph_update_interval;
6999N/Adiff -Nrup gnome-system-monitor-2.25.91/src/procman.cpp gnome-system-monitor-2.25.91.mod/src/procman.cpp
6895N/A--- gnome-system-monitor-2.25.91/src/procman.cpp 2009-01-03 20:06:10.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/procman.cpp 2009-03-04 10:22:32.037096000 +0800
6895N/A procdata->config.graph_update_interval = gconf_value_get_int (value);
6895N/A procdata->config.graph_update_interval =
6895N/A MAX (procdata->config.graph_update_interval,
14429N/A procdata->config.graph_update_interval);
14429N/A+ pd->config.width = CLAMP (pd->config.width, 50, swidth-2); /* there is a bug in gtk I think, when the width/height
6999N/Adiff -Nrup gnome-system-monitor-2.25.91/src/proctable.cpp gnome-system-monitor-2.25.91.mod/src/proctable.cpp
14429N/A--- gnome-system-monitor-2.25.91/src/proctable.cpp 2008-09-14 05:25:03.000000000 +0800
15890N/A+++ gnome-system-monitor-2.25.91.mod/src/proctable.cpp 2009-03-04 12:05:57.166912000 +0800
6999N/A+ /* we have to optimize the performance of libgtop, because update the information will occupy too much cpu.
6999N/A+ here I would like to make a little update:set glibtop_proc_map.flags=1,so as to let glibtop_get_proc_map_s()
6999N/A+ we do the check in glibtop_get_proc_map_s(), don't run the others part which don't need by this function,
14429N/A+ Also this will not affect the existing codes, because when nobody set glibtop_proc_map.flags,
7867N/A+ info->memxserver = xresources.total_bytes_estimate;
14429N/A info->vmsize = procmem.vsize;
14429N/A info->memres = procmem.resident;
14429N/A info->memshared = procmem.share;
14429N/A info->memxserver = xresources.total_bytes_estimate;
7867N/A procdata->pretty_table.set_icon(*info);
6895N/A info->status = procstate.state;
14429N/A+ get_process_memory_info(info);/* get shared/writable/xserver memory */
6999N/A- info->set_user(procstate.uid);
6999N/A+ info->set_user(procstate.uid);/* get user of process */
14429N/A info->pcpu = (proctime.rtime - info->cpu_time) * 100 / procdata->cpu_total_time;
14429N/A if (procdata->config.solaris_mode)
14429N/A info->pcpu /= procdata->config.num_cpus;
14429N/A ProcInfo::cpu_times[info->pid] = info->cpu_time = proctime.rtime;
6895N/A info->nice = procuid.nice;
14240N/A info->ppid = procuid.ppid;
14240N/A+ // info->nice = procstate.nice;
14240N/A+ info->start_time = procstate.start_time;
7867N/A+ info->vmsize = procstate.vsize;
6999N/A+ info->memres = procstate.resident;
6895N/A+ // info->pcpu = procstate.load;
6895N/A- info->start_time = proctime.start_time;
6895N/A+ /* zhua: get start_time/nice/ppid from procstate */
6895N/A+ info->start_time = procstate.start_time;
6895N/A+ info->nice = procstate.nice;
7867N/A+ info->vmsize = procstate.vsize;
7867N/A+ info->memres = procstate.resident;
7867N/A+ info->pcpu = procstate.load;
7867N/A addition.remove(info);
15890N/A while (not addition.empty()) {
15890N/A- procman_debug("looking for %d parents", int(addition.size()));
15890N/A+ //procman_debug("looking for %d parents", int(addition.size()));
15890N/A ProcList::iterator it(addition.begin());
7867N/A while (it != addition.end()) {
15890N/A refresh_list (procdata, pid_list, proclist.number);
15890N/Adiff -Nrup gnome-system-monitor-2.25.91/src/selection.cpp gnome-system-monitor-2.25.91.mod/src/selection.cpp
15890N/A--- gnome-system-monitor-2.25.91/src/selection.cpp 2007-06-30 02:28:26.000000000 +0800
7867N/A+++ gnome-system-monitor-2.25.91.mod/src/selection.cpp 2009-03-04 12:00:41.995124000 +0800
15890N/Adiff -Nrup gnome-system-monitor-2.25.91/src/smooth_refresh.cpp gnome-system-monitor-2.25.91.mod/src/smooth_refresh.cpp
6895N/A--- gnome-system-monitor-2.25.91/src/smooth_refresh.cpp 2009-01-19 02:16:39.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/smooth_refresh.cpp 2009-03-04 11:31:10.615230000 +0800
7867N/Adiff -Nrup gnome-system-monitor-2.25.91/src/sysinfo.cpp gnome-system-monitor-2.25.91.mod/src/sysinfo.cpp
7867N/A--- gnome-system-monitor-2.25.91/src/sysinfo.cpp 2009-01-21 05:13:28.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/sysinfo.cpp 2009-03-04 10:18:54.373979000 +0800
6895N/A- procman_debug("lsb_release output = '%s'", content.c_str());
6895N/A+ //procman_debug("lsb_release output = '%s'", content.c_str());
6895N/Adiff -Nrup gnome-system-monitor-2.25.91/src/util.cpp gnome-system-monitor-2.25.91.mod/src/util.cpp
7867N/A--- gnome-system-monitor-2.25.91/src/util.cpp 2009-02-17 02:21:44.000000000 +0800
6895N/A+++ gnome-system-monitor-2.25.91.mod/src/util.cpp 2009-03-04 10:21:38.634398000 +0800