Sponsored Content
Top Forums Shell Programming and Scripting How to get the time cost of functions? Post 302251757 by a2156z on Monday 27th of October 2008 11:47:34 PM
Old 10-28-2008
How to get the time cost of functions?

hi,
There is a shell including many functions, when I run ksh -x/-v to see the call sequence, but how do I know which function cost more?
Of course, use time CMD to get the scripts runnning time, while it can not tell me which cost more.
Thanks very much.
a2156z
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

The Cost Of UNIX

Can Anyone Tell Me The Cost Of UNIX As I'm Considering Finally Getting Rid Of This Rubbish Windows Based OS. I Would Also Like To Know Anyones Opinions On The Best Free Version, Thanks. (1 Reply)
Discussion started by: OSNovice
1 Replies

2. Programming

time functions help?

Hello to anyone who can help me! I am in need of some help in procuring a more exact timing scheme in C for use with gcc. I manage to get a timing in seconds just fine using difftime(). However, I need more accurate.. milliseconds... no clue. Please help? Brian (2 Replies)
Discussion started by: bcowan
2 Replies

3. UNIX for Dummies Questions & Answers

How to get UNIX tutorials(Free of Cost)

I wanted to learn UNIX & Shell Programming.Now i want material at free of cost.Where can i get ...tell me the SItes to get the tutorials (3 Replies)
Discussion started by: hairamu
3 Replies

4. UNIX for Advanced & Expert Users

why sshd cost different memory in the same system

It is a little bit weird to me when i found this on a solaris 9 system with openssh package. Below is the result copied from "top" output: PID USERNAME LWP PRI NICE SIZE RES STATE TIME CPU COMMAND 13491 root 1 59 0 27M 18M sleep 0:06 0.00% sshd -i 20198 root ... (1 Reply)
Discussion started by: sleepy_11
1 Replies

5. Shell Programming and Scripting

How to execute functions or initiate functions as command line parameters for below requirement?

I have 7 functions those need to be executed as command line inputs, I tried with below code it’s not executing function. If I run the ./script 2 then fun2 should execute , how to initiate that function I tried case and if else also, how to initiate function from command line if then... (8 Replies)
Discussion started by: saku
8 Replies
suspend(1)                                                         User Commands                                                        suspend(1)

NAME
suspend - shell built-in function to halt the current shell SYNOPSIS
sh suspend csh suspend ksh suspend DESCRIPTION
sh Stops the execution of the current shell (but not if it is the login shell). csh Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most often used to stop shells started by su. ksh Stops the execution of the current shell (but not if it is the login shell). ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
csh(1), kill(1), ksh(1), sh(1), su(1M), attributes(5) SunOS 5.10 15 Apr 1994 suspend(1)
All times are GMT -4. The time now is 12:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy