building with configurations per directory

building with configurations per directory

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
mikosz
Posts: 4
Joined: 08 Dec 2008, 17:43

building with configurations per directory

Post by mikosz »

Sorry if it's already been mentioned somewhere, but I couldn't find anything relative.
I'd like to profile a part of the game, specifically the code under rts/Map. Setting profile to true under scons will build all the code with profile generation, which I don't need / want. Is it in any way possible to set a configuration setting for a given directory? If not - is there some other convenient way of building spring and profiling parts of it?

Thx,
mikosz
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: building with configurations per directory

Post by Tobi »

If you're using Linux you can build using optimization AND debugging enabled and use oprof, a system wide profiler. (AFAIK you can set it to only record data from stack frames in a particular executable, ie. Spring)
mikosz
Posts: 4
Joined: 08 Dec 2008, 17:43

Re: building with configurations per directory

Post by mikosz »

Thx for the quick reply, I'll check it out.
Post Reply

Return to “Engine”