git-svn-id: svn://db.shs.com.ru/pip@710 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -164,7 +164,11 @@ void PISystemMonitor::run() {
|
|||||||
if (t->isPIObject())
|
if (t->isPIObject())
|
||||||
tbid[t->tid()] = t->name();
|
tbid[t->tid()] = t->name();
|
||||||
pitc->unlock();
|
pitc->unlock();
|
||||||
#ifndef FREERTOS
|
#ifdef FREERTOS
|
||||||
|
piForeach (PIThread * t, tv)
|
||||||
|
if (t->isPIObject())
|
||||||
|
gatherThread(t->tid());
|
||||||
|
#else
|
||||||
//piCout << tbid.keys().toType<uint>();
|
//piCout << tbid.keys().toType<uint>();
|
||||||
stat.ID = pID_;
|
stat.ID = pID_;
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
@@ -337,8 +341,10 @@ void PISystemMonitor::makeStrings() {
|
|||||||
void PISystemMonitor::gatherThread(llong id) {
|
void PISystemMonitor::gatherThread(llong id) {
|
||||||
PISystemMonitor::ThreadStats ts;
|
PISystemMonitor::ThreadStats ts;
|
||||||
ts.id = id;
|
ts.id = id;
|
||||||
|
#ifdef FREERTOS
|
||||||
|
ts.name = tbid.value(id, "<PIThread>");
|
||||||
|
#else
|
||||||
ts.name = tbid.value(id, "<non-PIThread>");
|
ts.name = tbid.value(id, "<non-PIThread>");
|
||||||
#ifndef FREERTOS
|
|
||||||
#ifndef WINDOWS
|
#ifndef WINDOWS
|
||||||
PIFile f(PRIVATE->proc_dir + "task/" + PIString::fromNumber(id) + "/stat");
|
PIFile f(PRIVATE->proc_dir + "task/" + PIString::fromNumber(id) + "/stat");
|
||||||
//piCout << f.path();
|
//piCout << f.path();
|
||||||
|
|||||||
Reference in New Issue
Block a user