![]() |
|
|
google unix.com
|
|||||||
| Forum | Registrati | Regole Forum | Collegamenti | Album | FAQ | Members List | Calendario | Ricerca | Today's Posts | Mark Forums Read |
| Di programmazione ad alto livello Pubblica domande su C, C + +, Java, SQL, e di altri linguaggi di programmazione qui. |
Più di UNIX e Linux Forum Argomenti potreste trovare utili
|
||||
| Filo | Thread Starter | Forum | Risposte | Ultimo Post |
| semaforo | raguramtgr | UNIX for Dummies Domande & Risposte | 7 | 06-15-2009 10:39 AM |
| Semaphore | Jaken | Shell scripting e di programmazione | 2 | 04-04-2009 06:10 PM |
| dmidecode, velocità di RAM \u003d "Velocità attuale: Sconosciuto" | Santi | Filesystem, memoria e dischi | 0 | 02-16-2006 06:16 AM |
| Semaphore | vjsony | UNIX for Dummies Domande & Risposte | 3 | 04-07-2003 03:06 PM |
| semaforo | yls177 | UNIX for Dummies Domande & Risposte | 1 | 10-09-2002 12:18 AM |
![]() |
|
|
LinkBack | Thread Tools | Cerca in questo Thread |
Rating:
|
Modalità di visualizzazione |
|
|
|
|||||
|
Usa / usr / bin / time-v per maggiori informazioni
Possiamo escludere marginalmente pagina colpe e simili guardando l'output di / usr / bin / time-v. Il minore errore di pagina si intende il sistema operativo riservata una pagina di memoria interna e che le tabelle sono state modificate, ma il processo non è stata sospesa a causa di IO o qualcosa di simile. Risulta, tutti questi sono dovuti ad una profilazione del codice o il programma invocazione. Codice:
$ /usr/bin/time -vv ./semget
555555.56 semop/s [0,0]
Command exited with non-zero status 24
Command being timed: "./semget"
User time (seconds): 2.85
System time (seconds): 6.12
Percent of CPU this job got: 99%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:08.99
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 0
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 135
Voluntary context switches: 7
Involuntary context switches: 53
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 24
|
|
||||
|
Citazione:
tstloop è l'unico programma, ho fatto eseguire nuovamente $. / Tstloop $ Gprof-l. / Tstloop gprof: gmon.out file è mancante call-grafico dei dati Grazie per l'assunzione di altri forum. a Otheus: tstloop compilato con il profiling: Codice:
$ /usr/bin/time -vv ./tstloop
125000.00 semop/s [0,0]
Command exited with non-zero status 24
Command being timed: "tstloop"
User time (seconds): 15.05
System time (seconds): 24.33
Percent of CPU this job got: 99%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:39.39
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 0
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 121
Voluntary context switches: 1
Involuntary context switches: 326
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 24
e qui sono i risultati di programma compilato senza profilazione Codice:
$ /usr/bin/time -vv ./tstloop
128205.13 semop/s [0,0]
Command exited with non-zero status 24
Command being timed: "./tstloop"
User time (seconds): 15.39
System time (seconds): 23.19
Percent of CPU this job got: 99%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:38.59
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 0
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 101
Voluntary context switches: 1
Involuntary context switches: 112
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 24
|
|
||||
|
-p bandiera aiutato, si prega di vedere i risultati al di sotto
$ Gprof-p. / Tstloop Profilo piatto: Ogni campione come conta 0,01 secondi. % Cumulativa totale auto auto secondo tempo secondo le chiamate T / T chiamata / chiamata nome 99,70 3,64 3,64 principale |
![]() |
| Segnalibri |
| Thread Tools | Cerca in questo Thread |
| Modalità di visualizzazione | Vota questo thread |
|
|