@@ -49,11 +49,12 @@ import { isRevisionRange, isSha, isUncommitted, isUncommittedStaged } from '../.
4949import { isUserMatch } from '../../../../git/utils/user.utils' ;
5050import { configuration } from '../../../../system/-webview/configuration' ;
5151import { splitPath } from '../../../../system/-webview/path' ;
52- import { log } from '../../../../system/decorators/log' ;
52+ import { debug , log } from '../../../../system/decorators/log' ;
5353import { filterMap , first , join , last , some } from '../../../../system/iterable' ;
5454import { Logger } from '../../../../system/logger' ;
5555import { getLogScope } from '../../../../system/logger.scope' ;
5656import { isFolderGlob , stripFolderGlob } from '../../../../system/path' ;
57+ import { maybeStopWatch } from '../../../../system/stopwatch' ;
5758import type { CachedLog , TrackedGitDocument } from '../../../../trackers/trackedDocument' ;
5859import { GitDocumentState } from '../../../../trackers/trackedDocument' ;
5960import type { Git , GitResult } from '../git' ;
@@ -380,6 +381,7 @@ export class CommitsGitSubProvider implements GitCommitsSubProvider {
380381 return this . getLogCore ( repoPath , rev , options , cancellation ) ;
381382 }
382383
384+ @debug ( { args : { 2 : false , 3 : false , 4 : false } , exit : true } )
383385 private async getLogCore (
384386 repoPath : string ,
385387 rev ?: string | undefined ,
@@ -1326,6 +1328,9 @@ async function parseCommits(
13261328 if ( resultOrStream instanceof Promise ) {
13271329 const result = await resultOrStream ;
13281330
1331+ const scope = getLogScope ( ) ;
1332+ using sw = maybeStopWatch ( scope , { log : false , logLevel : 'debug' } ) ;
1333+
13291334 if ( stashes ?. size ) {
13301335 const allowFilteredFiles = searchFilters ?. files ?? false ;
13311336 const stashesOnly = searchFilters ?. type === 'stash' ;
@@ -1367,6 +1372,8 @@ async function parseCommits(
13671372 }
13681373 }
13691374
1375+ sw ?. stop ( { suffix : ` created ${ count } commits` } ) ;
1376+
13701377 return { commits : commits , count : count , countStashChildCommits : countStashChildCommits } ;
13711378 }
13721379
0 commit comments