This file is indexed.

/usr/include/rtd/RtdPerformanceTool.h is in skycat 3.1.2+starlink1~b-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// -*-c++-*-
#ifndef _RtdPerformanceTool_h_
#define _RtdPerformanceTool_h_

/*
 * E.S.O. - VLT project 
 *
 * RtdPerformanceTool.h - class definitions for managing the performance data.
 * 
 * See the man page for a complete description.
 * 
 * who             when      what
 * --------------  --------  ----------------------------------------
 * D. Hopkinson    21/11/96  Created
 */

#include <cstdio>

#include "rtdImageEvent.h"

#define RTD_NUMTMSTMPS 20	// The number of timestamps produced 
				// for every received image event.

struct fLine {		// Represent each line of the performance file dump.
    char descr[32];	// Line description.
    double timeStamp;	// Line timestamp.
};

// For the summary report.
typedef struct {
    char	      procDesc[32];  /* Process description line. */
    float	      initTime;	     /* Time for startup processes. */
    float	      overallTime;   /* Overall time over whole test/ */
} reportRecord;

class RtdPerformanceTool {
protected:
    // Display diagnostic messages.
    int verbose_;

    // Flag that a test is underway.  This is required so that timestamp calls
    // can be added to routines which are called when the client is quiescent
    // without filling up the timestamp array before the test starts.
    int active_;

    // Array of timestamps for eventual output to the performance data file.
    struct timeval timeStamps[RTD_NUMSHM * RTD_NUMTMSTMPS];

    // Same for event descriptions.
    char evDescs[RTD_NUMSHM * RTD_NUMTMSTMPS][32];

    // Index to these arrays.
    int timeIndex;

    // Generate data summary.
    void generateSummary(const struct fLine *data, int numLines, 
	reportRecord* &summaryData, int& numReceived, int& correctOrdering);

    // Get the total processing time.
    float getProcTime(const reportRecord *data);

    // The sort algorithm for qsort.
    static int sortTime(const struct fLine *a, const struct fLine *b);

public:
    // Constructor
    RtdPerformanceTool();

    // Destructor
    ~RtdPerformanceTool();

    // Add timestamp for send event (take time from image information)
    void timeStamp(const rtdIMAGE_INFO *imageInfo);

    // Add timestamp in performance test.
    void timeStamp(char *evDesc);

    // Write the performance data to the browse file.
    int dumpPerformanceData(const rtdIMAGE_INFO *imageData);

    // Return active status of performance test.
    int active() {return active_ ? 1 : 0;}
};

#endif /* _RtdPerformanceTool_h_ */