Closed imthatgin closed 9 years ago
Hey Ryan, the profiler isn't loaded by default in the engine anywhere at the moment. Add require( "engine.shared.profile" )
before those lines.
I did add that. Still receiving the same issue.
If you're doing this in a module, make sure to access it from _G
, _G.profile
, etc.
I believe that was the issue. Thank-you. Would be useful to have somewhere in the wiki.
I'll make sure to document this from now on in the various interfaces and libraries. It's important to know when stuff is available. Thanks for bringing this up!
I think it could perhaps be broken, or I'm doing some stupid error.
The above does cause an error which goes along the lines of 'attempt to index global 'profile' (a nil value) on profile.start(), this might be an user error, not necesarily something broken, just need new eyes on it.