Ignore:
Timestamp:
Jan 2, 2007, 8:29:54 PM (19 years ago)
Author:
RBRi
Message:

% use new debug unit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/GlobalSearchForm.pas

    r32 r43  
    142142uses
    143143  SysUtils,
     144  DebugUnit,
    144145  ACLFileUtility,
    145   ACLProfile,
    146146  ACLDialogs,
    147147  ControlsUtility,
     
    499499  MatchingTopics := TList.Create;
    500500
    501   ProfileEvent( 'Getting files' );
     501  LogEvent(LogParse, 'Getting files');
    502502
    503503  // make sure we ignore duplicate files...
     
    535535  end;
    536536
    537   ProfileEvent( ' Searching ' + IntToStr( Files.Count ) + ' files' );
     537  LogEvent(LogParse, ' Searching ' + IntToStr( Files.Count ) + ' files');
    538538  for FileIndex := 0 to Files.Count - 1 do
    539539  begin
     
    541541      break;
    542542    Filename := Files[ FileIndex ];
    543     ProfileEvent( Filename );
     543    LogEvent(LogParse, Filename);
    544544    ThreadManager.UpdateProgress( 10 + FileIndex * 95 div Files.Count,
    545545                                  100,
     
    553553
    554554    try
    555       ProfileEvent( ' Create THelpFile' );
     555      LogEvent(LogParse, ' Create THelpFile');
    556556      HelpFile := THelpFile.Create( FileName );
    557557
    558       ProfileEvent( ' Helpfile created' );
     558      LogEvent(LogParse, ' Helpfile created');
    559559      MatchingTopics.Clear;
    560560
    561       ProfileEvent( ' Search file' );
     561      LogEvent(LogParse, ' Search file');
    562562      SearchHelpFile( HelpFile,
    563563                      Query,
     
    568568      if MatchingTopics.Count > 0 then
    569569      begin
    570         ProfileEvent( '  Sort results' );
     570        LogEvent(LogParse, '  Sort results');
    571571        // Create a searchresult object to send back to main thread.
    572572        SearchResult := TSearchResult.Create;
     
    577577
    578578        SearchResult.MatchingTopics.Sort( TopicRelevanceCompare );
    579         ProfileEvent( '  Display results' );
     579        LogEvent(LogParse, '  Display results');
    580580
    581581        ThreadManager.SendData( '', SearchResult );
    582582      end;
    583583
    584       ProfileEvent( 'Unload helpfile' );
     584      LogEvent(LogParse, 'Unload helpfile');
    585585      HelpFile.Destroy;
    586586
     
    598598
    599599  end;
    600   ProfileEvent( 'search completed' );
     600  LogEvent(LogParse, 'search completed');
    601601  ThreadManager.UpdateProgress( 100, 100, DoneMsg );
    602602  Files.Destroy;
     
    608608
    609609  Result := nil;
    610   ProfileEvent( 'done' );
     610  LogEvent(LogParse, 'done');
    611611End;
    612612
Note: See TracChangeset for help on using the changeset viewer.