If the .NET profiler api can be used to launch a managed code thread without modifying the application, then a simple port of the java agent code to C# should be possible. The hiccup observation must be done in managed code, and a separate thread, in order to observe the hiccups that an independent thread running such code would see.
Sent from my iPad On Aug 29, 2018, at 5:49 AM, Greg Young <[email protected]<mailto:[email protected]>> wrote: If someone wants to work on it I have a profiler api implementation that could be a useful starting point. It supports both mono and the CLR (two separate implementations the mono one is in C the CLR C++) On Wed, Aug 29, 2018 at 1:07 PM Remi Forax <[email protected]<mailto:[email protected]>> wrote: ________________________________ De: "Gil Tene" <[email protected]<mailto:[email protected]>> À: "mechanical-sympathy" <[email protected]<mailto:[email protected]>> Envoyé: Mardi 28 Août 2018 00:28:00 Objet: Re: jHiccup for .NET? There is a great implementation of HdrHistogram for .NET<https://github.com/HdrHistogram/HdrHistogram.NET>, which makes the rest of what jHiccup does nearly-trivial to do. I think the main thing keeping from porting jHiccup itself to .NET is that it's most common use mode is as a java agent (adding hiccup recording to a java program without modifying it in any way), and AFAIK .NET does not have a similar agent mechanism. I believe the .NET Profiling API provides something equivalent to the Java agent API. jHiccup itself is fairly simple and should be easy to port into a library you can invoke from within your application, and into a standalone program (for measuring control hiccups on an otherwise idle process). It's main class<https://github.com/giltene/jHiccup/blob/master/src/main/java/org/jhiccup/HiccupMeter.java> is only ~800 lines of code, over half of it in comments and parameter parsing logic. People have replicated some of it's logic in their C# stuff before (e.g. Matt Warren used it here<http://mattwarren.org/2014/06/23/measuring-the-impact-of-the-net-garbage-collector-an-update/>). -- Gil. Rémi On Monday, August 27, 2018 at 12:49:15 PM UTC-7, Mark E. Dawson, Jr. wrote: Does there exist a port for, or a similar tool to, jHiccup for .NET? -- You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- Studying for the Turing test -- You received this message because you are subscribed to a topic in the Google Groups "mechanical-sympathy" group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/mechanical-sympathy/aylGMNy9Z2E/unsubscribe. To unsubscribe from this group and all its topics, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "mechanical-sympathy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
