Re: intercepting the CLR



Hello gilad,

This request (or at least this type of request) is one of those that Aspect Oriented Programming tries to fulfil, so you may want to search for that - there are several more or less mature products out there that do AOP for .NET.

I read about the profiling API but never seen an example.

Searching Google gives me quite a list of results with information about the profiling API (http://www.google.com/search?hl=en&q=profiling+api) - several of them contain sample code.

also, I read it has large overhead.

I believe that is true, but then this is characteristic of all the different approaches for doing AOP in .NET, as the runtime system itself doesn't lend itself too easily to this technology. OTOH, the whole idea of AOP is to provide high-level convenience functionality for the programmer, IOW to make his life easier - this is usually an idea that is orthogonal to that of delivering the best possible performance.



Oliver Sturm
--
http://www.sturmnet.org/blog
.



Relevant Pages

  • Re: Naive, possibly silly question
    ... Aspect Oriented Programming shows significant promise for being "the ... I can see how AOP would have solved some problems in previous ... dependencies on the view classes that observe them, ... I'll be looking for opportunities to try AspectJ and other AOP tools. ...
    (comp.object)
  • Re: One last chapter to review! Last chance! One-day only!
    ... I don't know if the referrence to AspectL is such a good idea (sorry ... I don't know what aspect oriented programming ... "AOP was invented by Kiczales to bring part of the MOP to Java, as he said, ...
    (comp.lang.lisp)
  • Re: Aspect Programming Module
    ... > Is there any module/toolkit or framework for doing ... > aspect oriented programming (AOP) in Python? ...
    (comp.lang.python)
  • Re: Language Features Id Like To See
    ... Captain Jake wrote: ... Oriented Programming. ... I think there's some interesting things you can do with AOP. ...
    (borland.public.delphi.non-technical)