mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Added tracing option for PDOM timing so it doesn't print it out all the time.
This commit is contained in:
parent
df627e7739
commit
53c358a93f
2 changed files with 10 additions and 2 deletions
|
@ -32,3 +32,6 @@ org.eclipse.cdt.core/debug/typeresolver=false
|
||||||
|
|
||||||
# Reports file type resolver activity
|
# Reports file type resolver activity
|
||||||
org.eclipse.cdt.core/debug/typeresolver=false
|
org.eclipse.cdt.core/debug/typeresolver=false
|
||||||
|
|
||||||
|
# Reports timings for PDOM
|
||||||
|
org.eclipse.cdt.core/debug/pdomtimings=false
|
||||||
|
|
|
@ -22,6 +22,7 @@ import org.eclipse.cdt.core.model.ICElement;
|
||||||
import org.eclipse.cdt.core.model.ICElementDelta;
|
import org.eclipse.cdt.core.model.ICElementDelta;
|
||||||
import org.eclipse.cdt.core.model.ICProject;
|
import org.eclipse.cdt.core.model.ICProject;
|
||||||
import org.eclipse.cdt.core.model.ITranslationUnit;
|
import org.eclipse.cdt.core.model.ITranslationUnit;
|
||||||
|
import org.eclipse.cdt.internal.core.model.Util;
|
||||||
import org.eclipse.core.resources.IFile;
|
import org.eclipse.core.resources.IFile;
|
||||||
import org.eclipse.core.resources.IProject;
|
import org.eclipse.core.resources.IProject;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
|
@ -102,8 +103,12 @@ public class PDOMUpdator extends Job {
|
||||||
ITranslationUnit tu = (ITranslationUnit)i.next();
|
ITranslationUnit tu = (ITranslationUnit)i.next();
|
||||||
processRemovedTU(tu);
|
processRemovedTU(tu);
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("Updator Time: " + (System.currentTimeMillis() - start));
|
String showTimings = Platform.getDebugOption(CCorePlugin.PLUGIN_ID + "/debug/pdomtimings"); //$NON-NLS-1$
|
||||||
|
if (showTimings!= null)
|
||||||
|
if (showTimings.equalsIgnoreCase("true")) //$NON-NLS-1$
|
||||||
|
System.out.println("Updator Time: " + (System.currentTimeMillis() - start)); //$NON-NLS-1$
|
||||||
|
|
||||||
return Status.OK_STATUS;
|
return Status.OK_STATUS;
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
CCorePlugin.log(e);
|
CCorePlugin.log(e);
|
||||||
|
|
Loading…
Add table
Reference in a new issue