Changeset 43 for trunk/NewView/GlobalSearchForm.pas
- Timestamp:
- Jan 2, 2007, 8:29:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NewView/GlobalSearchForm.pas
r32 r43 142 142 uses 143 143 SysUtils, 144 DebugUnit, 144 145 ACLFileUtility, 145 ACLProfile,146 146 ACLDialogs, 147 147 ControlsUtility, … … 499 499 MatchingTopics := TList.Create; 500 500 501 ProfileEvent( 'Getting files');501 LogEvent(LogParse, 'Getting files'); 502 502 503 503 // make sure we ignore duplicate files... … … 535 535 end; 536 536 537 ProfileEvent( ' Searching ' + IntToStr( Files.Count ) + ' files');537 LogEvent(LogParse, ' Searching ' + IntToStr( Files.Count ) + ' files'); 538 538 for FileIndex := 0 to Files.Count - 1 do 539 539 begin … … 541 541 break; 542 542 Filename := Files[ FileIndex ]; 543 ProfileEvent( Filename);543 LogEvent(LogParse, Filename); 544 544 ThreadManager.UpdateProgress( 10 + FileIndex * 95 div Files.Count, 545 545 100, … … 553 553 554 554 try 555 ProfileEvent( ' Create THelpFile');555 LogEvent(LogParse, ' Create THelpFile'); 556 556 HelpFile := THelpFile.Create( FileName ); 557 557 558 ProfileEvent( ' Helpfile created');558 LogEvent(LogParse, ' Helpfile created'); 559 559 MatchingTopics.Clear; 560 560 561 ProfileEvent( ' Search file');561 LogEvent(LogParse, ' Search file'); 562 562 SearchHelpFile( HelpFile, 563 563 Query, … … 568 568 if MatchingTopics.Count > 0 then 569 569 begin 570 ProfileEvent( ' Sort results');570 LogEvent(LogParse, ' Sort results'); 571 571 // Create a searchresult object to send back to main thread. 572 572 SearchResult := TSearchResult.Create; … … 577 577 578 578 SearchResult.MatchingTopics.Sort( TopicRelevanceCompare ); 579 ProfileEvent( ' Display results');579 LogEvent(LogParse, ' Display results'); 580 580 581 581 ThreadManager.SendData( '', SearchResult ); 582 582 end; 583 583 584 ProfileEvent( 'Unload helpfile');584 LogEvent(LogParse, 'Unload helpfile'); 585 585 HelpFile.Destroy; 586 586 … … 598 598 599 599 end; 600 ProfileEvent( 'search completed');600 LogEvent(LogParse, 'search completed'); 601 601 ThreadManager.UpdateProgress( 100, 100, DoneMsg ); 602 602 Files.Destroy; … … 608 608 609 609 Result := nil; 610 ProfileEvent( 'done');610 LogEvent(LogParse, 'done'); 611 611 End; 612 612
Note:
See TracChangeset
for help on using the changeset viewer.