Join Simon Allardice for an in-depth discussion in this video Low-tech tracing and profiling, part of Programming Foundations: Code Efficiency.
The profiling we've done up to now hasn't…required us making any changes to the code.…But if we're able and willing to do so, either a…little or a lot, we can get some very useful information.…Let us begin by kicking this old school.…See, I can't imagine a programmer exists who hasn't written some…simple console debug, log, print, or trace statements in their code.…We have a function or method.…We're not sure we're getting here.…So we insert a print statement of some kind.…We also may not be quite sure we're getting out of it.…
So we could add another at the end.…Or even in multiple places inside the code, if there's lots going on.…Now, whatever your language, the syntax for might…change a little, but the idea is the same.…You know the deal, you run the application and these get written…on to a console or log area, so you can read them.…Now, many languages, these kinds of statements,…prints or debugs or console statements can often be stripped out of release…code automatically, saving you the trouble of deleting or commenting them all out.…
Learn to choose the right data types, understand the pitfalls of using high-level languages, and decide where to spend your time. Plus, see how the underlying memory management model may have more of an impact than you realize, and what performance issues you can expect working with databases and web services.
- Identifying problems in the code
- Embracing constraints
- Using code analysis tools to measure performance
- Managing memory
- Managing disk-based and network resources
Skill Level Beginner
Programming Foundations: Refactoring Codewith Simon Allardice1h 44m Intermediate
1. Approaching Efficiency
4. Algorithmic Efficiency
5. Disk-Based and Network Resources
Next steps6m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.