Wednesday, 21 November 2007

chapter 10, lesson 3: Monitoring Performance.

...for fixing perf probs like slow/sluggish UI, network access, db connectivity,...

  • Process class - can ref O.S process running ol local or remote machine.
  • Enumerating processes -
  • 1) GetCurrentProcess(),
  • 2) GetProcessById() - if process not found, ArgumentException thrown.
  • 3) GetProcessByName(),
  • 4) GetProcesses() - ArgumentException the 'catch-all' exception out of the set that could be couaght here.
  • PerformanceCounter class - for comparing baseline measurements against current measurements.
  • There exist built-in perf counters - dont reinvent the wheel!
  • CounterCreationData class - a container obj of props needed for PerformanceCounter obj.
  • PerformanceCounterCategory class - manage/manipulate PerformanceCounter objs + their categories. (See if given perf counter exists and if not, create it).

No comments: