Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60944

Add runtime of miner to RepositoryStatistics

XMLWordPrintable

      Currently, the GitRepositoryMiner logs the runtime of the mining process to the console log only:

      [Forensics] Creating SCM miner to obtain statistics for affected repository files
      [Forensics] -> Git miner successfully created in working tree '/var/data/workspace/Forensics'
      [Forensics] Analyzing the commit log of the Git repository '/var/data/workspace/Forensics'
      [Forensics] -> created report for 697 files in 41 seconds
      

      It would be nice if this information would be stored in the RepositoryStatistics instance as well. This feature should require a change in the model object only. Steps to do:

      • Record the current time stamp (see GitRepositoryMiner) when the RepositoryStatistics instance is created (constructor)
      • Update the total runtime whenever a new modifying operation has been invoked on the instance (all add methods)
      • Visualize the total time in the user interface

            rathaya Giulia Del Bravo
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: