Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help4407


This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting (CITS4407).

Assignment 2 and Clarifications.
 
Options:
RSS cloud
Jump to:

Assign 2 Q2 - execution time very long

1 of 390 articles shown, currently 1 other person reading this forum.
photo
From: David M.
Date: Tue 19th May, 3:22pm
Actions: 
        Login-to-reply
Things I have found helpful for script debugging and performance measurement,
in decreasing order of importance are:

1. Print debug statements in the code at suitable places.

2. Set bash debugging option -x to confirm the script is working as you intended.

3. Use the "time" command to get a general idea of where the computer is spending time.

4. Use the "gprof" and "strace" commands for performance analysis (rarely used).

Related articles

Assign 2 Q2 - execution time very long (all 3) RSS
├─ original   Tue 19th May, 11:56am, Fraser L.
├─ reply 1   Tue 19th May, 12:12pm, Christopher M.
└─ THIS   Tue 19th May, 3:22pm, David M.
This Page


Program written by: [email protected]
Feedback welcome
Last modified:  8:27am May 24 2020