<div dir="ltr">You can access System.Diagnostics via IronRuby. However, you will have to use the IronRuby interpreter to run your native ruby code, which is something I guess you are not willing to do (yet).<div><br></div>
<div>Maybe you&#39;d better look for a gem or a Ruby library that simplifies performance counter access...</div><div><br></div><div>Thanks,<div>Shay.<br><div><br clear="all">--------------------------------------------------<br>
Shay Friedman<br>Author of IronRuby Unleashed<br><a href="http://www.IronShay.com">http://www.IronShay.com</a><br>Follow me: <a href="http://twitter.com/ironshay">http://twitter.com/ironshay</a><br>
<br><br><div class="gmail_quote">On Mon, Dec 28, 2009 at 4:58 PM, Ameer Deen <span dir="ltr">&lt;<a href="mailto:lists@ruby-forum.com">lists@ruby-forum.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I&#39;m working in an environment that&#39;s very Ruby heavy and I&#39;ve never used<br>
ruby before. I need to be able to access Windows performance counters in<br>
from a Windows service is written in native Ruby (not IronRuby). I&#39;m<br>
traditionally a C# and JAVA programmer.<br>
<br>
I was wondering if it might be possible for Ruby to be able to access<br>
the .Net System.Diagnostics performance counters via IronRuby. Of<br>
course, if there&#39;s a much simpler way I&#39;m all ears.<br>
<br>
I tried searching the forum and it seems my searching skills are not up<br>
to par and apologize if this has been already answered. Thanks in<br>
advance for any help.<br>
<br>
<br>
Ameer.<br>
<font color="#888888">--<br>
Posted via <a href="http://www.ruby-forum.com/" target="_blank">http://www.ruby-forum.com/</a>.<br>
_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
</font></blockquote></div><br></div></div></div></div>