Trace Object Creation

Hi,
I have a project in which (somewhere) a Complex object is created which
is not exactly performance-wise or desirable. Unfortunatly the project
is fairly large and I have absolutely no idea where it is being created.
Is there a way to trace the object creation to find where the Complex is
object is created and initialized?

Thanks,
Steven D.

See #set_trace_func. That may help.

T.

See #set_trace_func. That may help.

T.

On Sep 26, 2006, at 10:36 PM, Trans wrote:

See #set_trace_func. That may help. [post x 3]

WTF? Is this PEBCAK or server error?

See #set_trace_func. That may help.

T.

Ryan D. wrote:

On Sep 26, 2006, at 10:36 PM, Trans wrote:

See #set_trace_func. That may help. [post x 3]

Google Server Error. ruby-talk-google (the google group archive) is
acting up. comp.lang.ruby is working okay though.

On Wed, 27 Sep 2006 11:36:30 +0900
“Trans” [email protected] wrote:

See #set_trace_func. That may help.

T.

Thank you, I figured it out. Math.cos calls the Complex class.