tprof, truncate the process path


 
Thread Tools Search this Thread
Operating Systems AIX tprof, truncate the process path
# 1  
Old 07-13-2011
tprof, truncate the process path

Hi,

i tryed
Code:
tprof -skex sleep 6

but...
Code:
Process               PID      TID  Total Kernel   User Shared  Other   Java
=======               ===      ===  ===== ======   ==== ======  =====   ====
wait                57372    77863  31.31  31.31   0.00   0.00   0.00   0.00
wait                53274    73765  30.99  30.99   0.00   0.00   0.00   0.00
wait                 8196     8197  30.03  30.03   0.00   0.00   0.00   0.00
wait                61470    86059   3.19   3.19   0.00   0.00   0.00   0.00
/usr/bin/          872540  9969895   1.28   0.96   0.00   0.00   0.32   0.00


it truncate the process path!
for example that pid...
Code:
ps aux | grep 872540
root     872540  0.2  1.0 194168 100720      - A      Jun 22 296:07 /usr/WebSphere6/ (also here it truncate)


how can i get the full path of that process using tprof?

Last edited by radoulov; 07-13-2011 at 05:58 AM.. Reason: Code tags.
# 2  
Old 07-13-2011
For your ps problem, from the man page of ps:
Quote:
w
Specifies a wide-column format for output (132 columns rather than 80). If repeated, (for example, ww),
uses arbitrarily wide output. This information is used to decide how much of long commands to print.
So rather use something like ps auxwwww.

For your tprof problem, from man page of tprof:
Quote:
-l
Enables long names reporting. By default tprof truncates the subroutine, program and source file names if
they do not fit into the available space in the profiling report. This flag disables truncation.
So you might want to try tprof -lskex sleep 6.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

Currently I am using this laborious command lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}' Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies

2. Shell Programming and Scripting

How to find the path of process in sunOS?

Please support for this issue, I have a below process running on my machine 16108 /usr/jdk/instances/jdk1.6.0/bin/java -Xms3072m -Xmx3072m -Dcbcm.root=/java3_app 20992 java -Djob.name=SOME_JOB_IS_RUNNING -Dcbcm.root=/java3_apps1/cbcm_js/j For PID 16108 I can see that its... (3 Replies)
Discussion started by: mirwasim
3 Replies

3. UNIX for Dummies Questions & Answers

Way to get Code/path , which is executing under a process?

Dear All, Please help me in finding solution for below problem. I need a command or script to get code or path(from which location code is being executed), which is executing under a process ID. I dont have google access here,Please help me in finding solution. Thank you. (3 Replies)
Discussion started by: subbarao12
3 Replies

4. Shell Programming and Scripting

Loop to process 2 files with same name in different path

Hello forum members, I hope you can help me with this I don't know hot to reach. I have a list of files in "/home/MyPath1/" and in "/home/MyPath2/". The files have the same name in both folders. (but different content, the content doesn't matter here I think) /home/MyPath1/ filename1.txt... (4 Replies)
Discussion started by: Ophiuchus
4 Replies

5. UNIX for Advanced & Expert Users

Truncate folder path

Hello, Given below are 2 sample paths from 2 different servers: /opt/temp/PROD/Script/New/Letters /opt/Share/temp/Share1/PROD/Script/Files/New/Letters I would like to truncate the path till the folder "PROD". Please note that the field count of the folder "PROD" vaires from... (1 Reply)
Discussion started by: DawnNish
1 Replies

6. Shell Programming and Scripting

Truncate path and keep only filenames

Hi everyone, I have a question for you, I'm trying to create a script that will automate creating loading screens for the iPhone. So what I need to do, is list the directories inside /var/mobile/Applications and scan inside those, for the .app directory inside each. Take that .app name... (15 Replies)
Discussion started by: kicker75
15 Replies

7. Programming

How to pass FIFO path to client process ?

Hello everybody ! I have a first program, called "server" which build 2 FIFO's in this way: ... #define PERMS 0666 #define FIFO1 "\tmp\cerere" #define FIFO2 "\tmp\raspuns" ... mkfifo(FIFO1, PERMS) mkfifo(FIFO2, PERMS) ... I want to access these FIFO's in a second separate program,... (1 Reply)
Discussion started by: Ametis1970
1 Replies

8. Shell Programming and Scripting

Truncate directory path

Is it possibe to use sed for the following? I would like to truncate the output of a directory path if it's over 3 directory levels deep. For example: /dir1/dir2/dir3 -- NO change required but, /dir1/dir2/dir3/dir4 would output as ~/dir4 Thanks. (4 Replies)
Discussion started by: here2learn
4 Replies

9. UNIX for Advanced & Expert Users

process executable file full path

hi guys i give "ps -ef | grep some_executable_file" on the command line. this "some_executable_file" resides on many paths which r included in the PATH environment variable, so the output depicts only "some_executable_file" in the COMMAND column. how can i get the full path? thanx (3 Replies)
Discussion started by: xtrix
3 Replies

10. UNIX for Dummies Questions & Answers

Truncate what is It?

what does this command do ? as in does this command just make sure everything in the file is executed? or does it flush the file? Actually this is used on a file in a progress database but I believe it is a unix command? (2 Replies)
Discussion started by: rocker40
2 Replies
Login or Register to Ask a Question