GUI command profiling

7 risposte [Ultimo contenuto]
OlRoy
Offline
Iscritto: 11/04/2012

Hello,
How to know what commands run as a result of the gui-user interaction?

OlRoy
Offline
Iscritto: 11/04/2012

Like, when i select a drive from my main menu, what commands get executed to ask my password & then mount & open it in nautilus? And what gets executed when i copy-paste.
I noticed the time taken by copy-paste is less, than executing cp or rsync in terminal.

PS:oops, i hit save instead of preview. i dont have edit permissions yet. So, wrote 2nd. Moderator, please dont think i am double posting.

Thanks.

Bazzy

I am a member!

Offline
Iscritto: 10/01/2011

It's likely that most GUI program do the system calls themselves rather than calling the shell.

If you need to know how to perform a specific task you'll need to make a specific search for it.

OlRoy
Offline
Iscritto: 11/04/2012

So, whatever system calls the desktop environment is making, do they get logged in some file? Or, is their any book that tells what calls/cmds are executed behind the UI.

I am curious to know what calls/cmd the DE uses to do a task.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

If every system call would be logged, the logs would grow at an impressive rate! What you want is to take a look at the source codes.

OlRoy
Offline
Iscritto: 11/04/2012

did no one so far thought to know what goes on behind the clicks? Looking into sources is a straight forward approach, but highly inefficient for an individual, considering the amount of code a DE has.

Is there no book about this?

Andres Muniz
Offline
Iscritto: 10/28/2012

----- Mensaje original -----
> did no one so far thought to know what goes on behind the clicks?
> Looking    into sources is a straight forward approach, but highly
> inefficient for an    individual, considering the amount of code a DE has.
>
> Is there no book about this?
>
>
i might have miss understood your question, so bear with me.
i am thinking that it would be dependant of the language the program is written in and the style o the programer. Some programs have a well documented wiki with the source code or you could look for the command line instrucion within the source code with a ctrl+f in gedit. If you can't find it then they probably used some other means. For example c might have a way to do the same thing and python another. But that should be found in the documentation help for each language.

Bazzy

I am a member!

Offline
Iscritto: 10/01/2011

To get a list of the low-level system API read http://linux.die.net/man/2/syscalls (or man syscalls)

Most programs would use wrapper libraries to these functions which are usually quite cumbersome to use.