Agents [message #76647] |
Fri, 07 July 2006 12:53 |
Eclipse User |
|
|
|
Originally posted by: powerkleszcz.o2.pl
Where can i find some agents (c++ or java) mesauring procesor or mamory
usage.
What to do to compile sdk example agents?? I have errors:
:TimeCollector.cpp:(.text+0x2ce): undefined reference to
`BaseAgentImpl::~BaseAgentImpl()'
:TimeCollector.cpp:(.text+0x300): undefined reference to
`BaseAgentImpl::~BaseAgentImpl()'
....
I have all environment variable set and from some reason it still can't see.
|
|
|
Re: Agents [message #76679 is a reply to message #76647] |
Fri, 07 July 2006 18:02 |
Randy D. Smith Messages: 394 Registered: July 2009 |
Senior Member |
|
|
Przemyslaw Kleszczewski wrote:
> Where can i find some agents (c++ or java) mesauring procesor or mamory
> usage.
>
> What to do to compile sdk example agents?? I have errors:
> :TimeCollector.cpp:(.text+0x2ce): undefined reference to
> `BaseAgentImpl::~BaseAgentImpl()'
> :TimeCollector.cpp:(.text+0x300): undefined reference to
> `BaseAgentImpl::~BaseAgentImpl()'
> ...
>
> I have all environment variable set and from some reason it still can't see.
Have you gone through <ac_install_dir>/bin/readme.txt? That's the
"definitive work" on building the samples.
As for the processor/memory usage measuring code... I would take a look
at the PerfmonAgent code in CVS under
/cvsroot/tptp/platform/org.eclipse.tptp.platform.agentcontro ller/src-native/collection/collectors/perfmon...
The rac directory is just the interface to the RAC DLLs, the resutils
directory has utility functions, the PerfmonAgent directory is the
driver program, and the stuff you want is in sysperf for Windows and
perflin for Linux. Good stuff... nice, simple architecture.
Unfortunately, it's an "old agent", in the sense that it uses the RAC
approach to agents. For "new agents", you might have a look at
src-native-new/test/PerfmonAgent... this used to be over in samples in
4.1, but with 4.2 enough changed that it stopped working on the Eclipse
workbench side. But as an agent, it does all the "real" Perfmon does,
but using the architecture of the new AC. Same structure as mentioned
above, but with the object-oriented inheritance mechanisms of C++, the
"rac" directory went away and its functionality was subsumed under the
PerfmonAgent subdirectory in the driver just by declaring the Agent to
extend BaseCollector.
--
RDS
Randy D. Smith randy (dot) d (dot) smith (at) intel (dot) com
Eclipse TPTP Committer, Platform Proj (data collection/agent controller)
|
|
|
Re: Agents [message #76743 is a reply to message #76679] |
Mon, 10 July 2006 11:11 |
Eclipse User |
|
|
|
Originally posted by: powerkleszcz.o2.pl
Randy D. Smith wrote:
> Have you gone through <ac_install_dir>/bin/readme.txt? That's the
> "definitive work" on building the samples.
>
I have all done all steps from readme file and still have the same linker
errors:
:TimeCollector.cpp
(.gnu.linkonce.t._ZN17EventProviderImplD0Ev[EventProviderImp l::~EventProviderImpl()]+0xc8):
undefined reference to `BaseAgentImpl::~BaseAgentImpl()'
:TimeCollector.cpp
(.gnu.linkonce.t._ZN17EventProviderImplD0Ev[EventProviderImp l::~EventProviderImpl()]+0xfa):
undefined reference to `BaseAgentImpl::~BaseAgentImpl()'
TimeCollector.o
(.gnu.linkonce.d._ZTC13TimeCollector0_17BaseCollectorImpl[vt able for
TimeCollector]+0x44): undefined reference to
`EventProviderImpl::addEventListener(CmdBlock*)'
TimeCollector.o
(.gnu.linkonce.d._ZTC13TimeCollector0_17BaseCollectorImpl[vt able for
TimeCollector]+0x48): undefined reference to
`EventProviderImpl::removeEventListener(CmdBlock*)'
|
|
|
Re: Agents (perfmonAgent) [message #76759 is a reply to message #76679] |
Mon, 10 July 2006 13:28 |
Eclipse User |
|
|
|
Originally posted by: powerkleszcz.o2.pl
During compilation perfmonAgent I have the same error while compiling other
agents:
/tmp/ccT7r1Xu.o: In function `PerfmonAgent::manageResources(int (*
(HashTable*, HashTable*, HashTable*), int (*)(), char** (*)(int*), char**
(*)(int*), PerfmonAgent*)':PerfmonAgent/PerfmonAgent.cpp:154: undefined
reference to `BaseAgentImpl::registerAgent()'
/tmp/ccT7r1Xu.o: In function
`PerfmonAgent::sendRunResponse(CmdBlock*)':PerfmonAgent/Perf monAgent.cpp:584:
undefined reference to `CmdBlock::getDestID()'
:PerfmonAgent/PerfmonAgent.cpp:585: undefined reference to
`CmdBlock::getSourceID()'
:PerfmonAgent/PerfmonAgent.cpp:586: undefined reference to
`CmdBlock::getContextID()'
:PerfmonAgent/PerfmonAgent.cpp:595: undefined reference to
`BaseAgentImpl::sendCommand(char*)'
/tmp/ccT7r1Xu.o: In function
`PerfmonAgent::sendStopResponse(CmdBlock*)':PerfmonAgent/Per fmonAgent.cpp:604:
undefined reference to `CmdBlock::getDestID()'
:PerfmonAgent/PerfmonAgent.cpp:605: undefined reference to
`CmdBlock::getSourceID()'
with what can it be connected???
|
|
|
|
Powered by
FUDForum. Page generated in 0.01965 seconds