Is there a tool which can help me getting average CPU and memory taken by a process by running over certain period of time? I used Activity Monitor, but this does not give average of these values.
Idea / suggestions?
...
I would like to be able to execute a script to draw out the current cache process information. Has anybody done much scripting with cache? Is there an easier way to basically log the process information? The end result of this is I would like to present this information in a way that I could log it into Splunk
...
It would all be good to get:
The process ID of each one
How much CPU time gets used by the process
and can we do this for Mac in C or Objective C? Some example code would be awesome!
...
Hello,
Could someone give me some advice or a snippet of code that would show me the way of implementing the method in this listing . I would like to get some info about processes on a mac. I'm not so good with C, but am familiar with Objective C.
Thanks!
...
I've managed to implement the code on this listing to get a list of all the processes running and their IDs. What I need now is to extract how much time each process uses the CPU.
I've tried referring to the keys in the code, but when I try to print 'Ticks of CPU Time' I get a zero value for all of the processes. Plus, even if I did ge...
In Cocoa/ Objective C I need to be able to programmatically find out which app or process has the keyboard focus. This may be done by doing a 'hit-test', but I'm not exactly sure.
I also need to get the process ID number and Window Title of app that has the keyboard focus.
Objective C or C only please!
Snippets appreciated!
...
Hi ,
I am trying to call c++ exe from java applet.For this purpose am using processbuilder.My code is as follows
ProcessBuilder pb = new ProcessBuilder(s);
Process process = pb.start();
final InputStream is = process.getInputStream();
OutputStream out = process.getOutputStream();
PrintWriter pw = new PrintWriter(new BufferedWriter(new ...
How would I use Python to determine what programs are currently running. I am on Windows.
...
Hi,
I'm developing a driver in Windows Filtering Platform and I need the process ID of another process to do what I need to do.
I know only the file name of that process (name.exe).
In win32 I could use the function CreateToolhelp32Snapshot to get the list of all processes and I could search the PID there.
( http://msdn.microsoft.com/en...
Hi,
I am doing programming in C++, under LINUX.
I have two independent processes. I should provide communication using named pipe.
Reader:
-creates FIFO using mkfifo - status = mkfifo(myFIFO, 0666)
-opens the pipe using open - fifo = open (myFIFO,O_RDONLY)
-reads from the pipe - num = read(fifo, temp, sizeof(temp))
Writer:
-opens pi...
void turtle (int gtot)
{
int msg;
fcntl(gtot,F_SETFL,O_NONBLOCK);
read(gtot,&msg,4);
gotoxy(12, 21); printf("The value of buffer for turtle is %d",msg);
//react to god's message
xcoor += msg;
msg = 0;
sleep(sleep_time);
}
void god (int gtot )
{
char choice, sign;
int distance;...
The main process in my program forks 3 more process with say process ids as pid1, pid2, pid3. Pid1 and pid2 processes are in infinite loop. What I want is when pid3 process is over all the process including the main are terminated. As of now, I am using :
wait(pid3);
kill(0, SIGKILL);
which do all above as i said, but it prints Killed...
Take this example code
private void test()
{
Label1.Text = "Function 1 started.";
function1(); //This function takes a while to execute say 15 seconds.
Label2.Text = "Function 1 finished.";
}
If this is run you would never see Function 1 started. So my question is, Are there any c# functions that could be call the show the...
I am currently using the EnumProcesses function to obtain a list of running processes. Since my application runs in user space, however, it is not able to get handles for processes not running under the user, including System processes. Is there another method that will give me access to these? All I need are the process names.
Thanks
...
So when I run this code it seems to fork bomb the system can you guys help me out? All I want to do is start a thread for each one of the appWatch domains and enviroments.
#!/usr/bin/perl
#
#
# Starts the mass processes to watch each directory & enviroment.
#
#
#
##################################################################...
We as a group develop Javascript/JSP web application,
and the problem is we are developing the webapps based on customer requests,
while another team (core team) develops the "core" webapp product.
In other word, we "customize" the Javascript/JSP webapp differently for different customers, most of the customization is in the Javascript...
I've asked many, many C questions here on stackoverflow over the past few days. I feel like I'm at the final one. My assignment works ALMOST perfectly. Here is the premise:
Write a program to query the user for two input strings. Each input string should be a unix command, with arguments allowed. For example, input 1 could be ls -l and ...
In a unittest sequence I'm testing if a data corruption error is caught or not (deliberately feeding corrupt data).
In order to treat a program crash (e.g. corrupt data + poor buffer management) as a regular fail-condition I run the program in a child process with CreateProcess. My problem is that if it crashes I get a crash report dia...
Let's say I run ps axf and I can see that my command's process tree looks like this:
800 ? Ss 0:00 /usr/sbin/sshd
10186 ? Ss 0:00 \_ sshd: yukondude [priv]
10251 ? S 0:00 \_ sshd: yukondude@pts/0
10252 pts/0 Ss 0:00 \_ -bash
10778 pts/0 S 0:00 \_ su -
10785 p...
Based upon your experience
If you was given the opportunity to set up the development processes for a small development team.
Please detail
The things you would implement, tools, documents, methodology.
And how you would implement these?
I wish to implement the following:
Source Control
Bug tracking database
Formal Spec template...