Join Simon Allardice for an in-depth discussion in this video Example: Tracing and performance counters in .NET, part of Foundations of Programming: Code Efficiency.
On the other end of the scale with a set of…more advanced options are the dot NET languages like C# or VB.NET.…Where we can go from first adding those…straightforward messages that just write directly to the console.…Console.WriteLine in this case.…But more specifically there is a specialized…version for what we might be interested in.…Using the Debug class.…Now unlike using the console class, any logging or…tracing messages using methods of the Debug class will…by default, be stripped out of release builds for your code.…So you can just leave them in your code, and just…see their effect when you're debugging, or when you're adding new features.…
There's also a Trace class in dot NET where they set up trace methods.…Now these trace methods are actually identical…to the methods in the debug class.…But the intention is different.…Debug methods are stripped out of release builds and trace methods are not.…And that's the difference between…trace and debug.…Trace messages are intended for you to leave them in production code.…
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
Foundations of Programming: 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.