[IronPython] -X:EnableProfiler and DLR hosting API (2.6b2)

Michael Foord fuzzyman at voidspace.org.uk
Thu Aug 6 17:30:35 CEST 2009


Dino Viehland wrote:
> All the options should be the same as the command line options.  So they're
> documented via ipy.exe /? :)
>   

C:\compile>"c:\Program Files\IronPython 2.6\ipy.exe" /?
File /? does not exist.
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Michael Foord
> Sent: Wednesday, August 05, 2009 4:07 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] -X:EnableProfiler and DLR hosting API (2.6b2)
>
> David DiCato wrote:
>   
>> You have to pass the required options to Python.CreateEngine, like so:
>>
>> var options = new Dictionary<string, object>();
>>
>> options["EnableProfiler"] = ScriptingRuntimeHelpers.True;
>>
>> ver engine = Python.CreateEngine(options);
>>
>>     
>
> Are these options for IronPython 2.6 documented anywhere?
>
> Michael
>
>   
>> Hope this helps,
>>
>> - David
>>
>> *From:* users-bounces at lists.ironpython.com
>> [mailto:users-bounces at lists.ironpython.com] *On Behalf Of *Mads
>> Weitling
>> *Sent:* Wednesday, August 05, 2009 12:54 AM
>> *To:* users at lists.ironpython.com
>> *Subject:* [IronPython] -X:EnableProfiler and DLR hosting API (2.6b2)
>>
>> Hi all and many thanks to Dino Viehland for answering my previous
>> question re: sys.builtin_module_names and embedding.
>>
>> I am trying to use the IronPython profiler
>> (http://blogs.msdn.com/curth/archive/2009/03/29/an-ironpython-profiler
>> .aspx) from an embedded interpreter but cannot figure out how to pass
>> the -X:EnableProfiler to my ScriptEngine instance.
>>
>> _engine = Python.CreateEngine();
>>
>> Debug.WriteLine(_engine.Runtime.Setup.HostArguments.IsReadOnly);
>>
>> // prints True
>>
>> _engine.Runtime.Setup.HostArguments.Add("-X:EnableProfiler")
>>
>> // throws an System.NotSupportedException
>>
>> How do I set up the Runtime.Setup.HostArguments before calling
>> Python.CreateEngine()?
>>
>>
>> /Mads
>>
>> ----------------------------------------------------------------------
>> --
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.ironpython.com
>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>>
>>     
>
>
> --
> http://www.ironpythoninaction.com/
> http://www.voidspace.org.uk/blog
>
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   


-- 
http://www.ironpythoninaction.com/
http://www.voidspace.org.uk/blog





More information about the Ironpython-users mailing list