answersLogoWhite

0

Profiling is about executing a program and finding out how much time it spends in each routine. The goal of profiling is often finding slow routines in a program and optimizing them. Profiling is done on working code.

Debugging is about finding code that is not working, i.e. has some kind of defect. The program is known to have a defect because some set of inputs causes a set of outputs that are known to be wrong. Debugging is the process of finding the source of the defect in the code and fixing that location and any other downstream locations so that the set of inputs is correctly rendered into the set of outputs.

User Avatar

Wiki User

11y ago

Still curious? Ask our experts.

Chat with our AI personalities

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
More answers

dDebugging is the process of executing programs with sample datasets to determinine if the results obtained satisfactory and debugging is also indicate the presense of error.

User Avatar

Wiki User

13y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between profiling and debugging?
Write your answer...
Submit
Still have questions?
magnify glass
imp