Slicer 5.13
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
qSlicerStartupFilePrefetcher.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Program: 3D Slicer
4
5 Copyright (c) Kitware Inc.
6
7 See COPYRIGHT.txt
8 or http://www.slicer.org/copyright/copyright.txt for details.
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16==============================================================================*/
17
18#ifndef __qSlicerStartupFilePrefetcher_h
19#define __qSlicerStartupFilePrefetcher_h
20
21// Qt includes
22#include <QString>
23#include <QStringList>
24
25#include "qSlicerBaseQTAppExport.h"
26
108class Q_SLICER_BASE_QTAPP_EXPORT qSlicerStartupFilePrefetcher
109{
110public:
186
200 static void start();
201
208 static void finish();
209
213 static Report report();
214
217 static QStringList reportLines();
218
237 static QString cacheFilePath();
238
241 static QStringList loadedLibraryPaths();
242
243private:
244 qSlicerStartupFilePrefetcher() = delete;
245 ~qSlicerStartupFilePrefetcher() = delete;
246};
247
248#endif
static QStringList reportLines()
static QString cacheFilePath()
static QStringList loadedLibraryPaths()
What the prefetch did during this startup.
QString CacheFilePath
The list start() replayed and finish() rewrites.
int RecordedLibraryCount
Entries written back to the list for the next run, 0 if it could not be written.
double WorkersFinishedTimeMs
When the last worker ran out of queued libraries, or -1 if some are still going.
double FinishStartTimeMs
When finish() began and ended. Their distance is what recording the list cost.