public AbstractProfilePrinter makeDefaultProfilePrinter(IProfileData profileData) {
if (profilingMode == ProfilingMode.FLAT) {
return new FlatProfilePrinter(profileData.getResults());
}
else if (profilingMode == ProfilingMode.GRAPH) {
return new GraphProfilePrinter(profileData.getResults());
}
return null;
}