Click here to Skip to main content
15,914,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLose focus window... Pin
uniqueworld16-Jun-04 16:46
uniqueworld16-Jun-04 16:46 
Generalglobal array pls pls help Pin
Anonymous16-Jun-04 16:24
Anonymous16-Jun-04 16:24 
GeneralRe: global array pls pls help Pin
nguyenvhn16-Jun-04 17:14
nguyenvhn16-Jun-04 17:14 
GeneralRe: global array pls pls help Pin
John R. Shaw17-Jun-04 13:03
John R. Shaw17-Jun-04 13:03 
Generaldll function calls Pin
Member 19033516-Jun-04 14:54
Member 19033516-Jun-04 14:54 
GeneralRe: dll function calls Pin
palbano16-Jun-04 16:08
palbano16-Jun-04 16:08 
GeneralRe: dll function calls Pin
Member 19033516-Jun-04 16:20
Member 19033516-Jun-04 16:20 
Generalplotting cpu and mem consumption Pin
vvim16-Jun-04 14:32
vvim16-Jun-04 14:32 
Hi Group,

for a project[1] I am trying to find an OS independant way to measure the amount of cpu usage

and memory consumption of the program. It would be nice if I could do that in my C++ code, so I

can show the results at runtime or even plot a nice graph (I got wild dreams).

After some google'ing I found some (nice) examples[2] but they are all windows based. Does

universal code for this problem exist?

Of course I can make different classes (one for windows and another for *nix), I do something

similar to assign sockets. But then I also need code for *nix, without using bash-scripting of

course.

So I am looking for something OS independant, but examples for windows or *nix can help me out

for now as well.

Goodnight everyone and thanks in advance,

--wim
______
[1] I am trying to compare some differint multicast protocols, and yes, also cpu usage and

memory consumption is an important part of that Smile | :)
[2] if anybody wants them, I can always post links, just ask

GeneralRe: plotting cpu and mem consumption Pin
Antony M Kancidrowski17-Jun-04 1:50
Antony M Kancidrowski17-Jun-04 1:50 
GeneralRe: plotting cpu and mem consumption Pin
vvim18-Jun-04 2:25
vvim18-Jun-04 2:25 
GeneralMenubar problem Pin
group716-Jun-04 13:04
group716-Jun-04 13:04 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 20:51
Anthony_Yio16-Jun-04 20:51 
GeneralRe: Menubar problem Pin
group716-Jun-04 22:43
group716-Jun-04 22:43 
GeneralRe: Menubar problem Pin
Anthony_Yio16-Jun-04 23:08
Anthony_Yio16-Jun-04 23:08 
Questioninstance name from thread id? Pin
ben216-Jun-04 12:04
ben216-Jun-04 12:04 
AnswerRe: instance name from thread id? Pin
Blake Miller16-Jun-04 13:21
Blake Miller16-Jun-04 13:21 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:02
ben216-Jun-04 15:02 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:12
ben216-Jun-04 15:12 
GeneralRe: instance name from thread id? Pin
ben216-Jun-04 15:17
ben216-Jun-04 15:17 
GeneralRe: instance name from thread id? Pin
Blake Miller16-Jun-04 15:50
Blake Miller16-Jun-04 15:50 
GeneralC++ Arrow Keys Pin
c. s.16-Jun-04 11:55
c. s.16-Jun-04 11:55 
GeneralRe: C++ Arrow Keys Pin
palbano16-Jun-04 12:02
palbano16-Jun-04 12:02 
GeneralRe: C++ Arrow Keys Pin
c. s.16-Jun-04 22:00
c. s.16-Jun-04 22:00 
GeneralRe: C++ Arrow Keys Pin
Roger Allen16-Jun-04 22:24
Roger Allen16-Jun-04 22:24 
QuestionTB_ADDSTRING example? Pin
LukeV16-Jun-04 10:48
LukeV16-Jun-04 10:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.