mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Added better timing stats for the Fast indexer.
This commit is contained in:
parent
50a37afbda
commit
55339ee152
2 changed files with 7 additions and 1 deletions
|
@ -100,7 +100,7 @@ class PDOMFastHandleDelta extends Job {
|
|||
if (showTimings != null)
|
||||
if (showTimings.equalsIgnoreCase("true")) //$NON-NLS-1$
|
||||
System.out
|
||||
.println("Updator Time: " + (System.currentTimeMillis() - start)); //$NON-NLS-1$
|
||||
.println("PDOM Update Time: " + (System.currentTimeMillis() - start)); //$NON-NLS-1$
|
||||
|
||||
return Status.OK_STATUS;
|
||||
} catch (CoreException e) {
|
||||
|
|
|
@ -48,6 +48,7 @@ public class PDOMFastReindex extends Job {
|
|||
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
try {
|
||||
long start = System.currentTimeMillis();
|
||||
final List addedTUs = new ArrayList();
|
||||
|
||||
// First clear out the DB
|
||||
|
@ -78,6 +79,11 @@ public class PDOMFastReindex extends Job {
|
|||
for (Iterator i = addedTUs.iterator(); i.hasNext();)
|
||||
addTU((ITranslationUnit)i.next());
|
||||
|
||||
String showTimings = Platform.getDebugOption(CCorePlugin.PLUGIN_ID
|
||||
+ "/debug/pdomtimings"); //$NON-NLS-1$
|
||||
if (showTimings != null && showTimings.equalsIgnoreCase("true")) //$NON-NLS-1$
|
||||
System.out.println("PDOM Reindex Time: " + (System.currentTimeMillis() - start)); //$NON-NLS-1$
|
||||
|
||||
monitor.done();
|
||||
return Status.OK_STATUS;
|
||||
} catch (CoreException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue