1 |
greg |
2.8 |
/* RCSid $Id: pmapdiag.h,v 2.7 2016/05/17 17:39:47 rschregle Exp $ */ |
2 |
rschregle |
2.7 |
|
3 |
greg |
2.1 |
/* |
4 |
|
|
================================================================== |
5 |
|
|
Photon map diagnostic output and progress reports |
6 |
|
|
|
7 |
|
|
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
8 |
|
|
(c) Fraunhofer Institute for Solar Energy Systems, |
9 |
rschregle |
2.4 |
(c) Lucerne University of Applied Sciences and Arts, |
10 |
|
|
supported by the Swiss National Science Foundation (SNSF, #147053) |
11 |
greg |
2.1 |
================================================================== |
12 |
|
|
|
13 |
greg |
2.8 |
$Id: pmapdiag.h,v 2.7 2016/05/17 17:39:47 rschregle Exp $ |
14 |
greg |
2.1 |
*/ |
15 |
|
|
|
16 |
|
|
|
17 |
|
|
#ifndef PMAPDIAG_H |
18 |
|
|
#define PMAPDIAG_H |
19 |
|
|
|
20 |
|
|
#include "platform.h" |
21 |
|
|
|
22 |
|
|
#ifdef NON_POSIX |
23 |
|
|
#ifdef MINGW |
24 |
|
|
#include <sys/time.h> |
25 |
|
|
#endif |
26 |
|
|
#else |
27 |
|
|
#ifdef BSD |
28 |
|
|
#include <sys/time.h> |
29 |
|
|
#include <sys/resource.h> |
30 |
|
|
#else |
31 |
|
|
#include <sys/times.h> |
32 |
|
|
#include <unistd.h> |
33 |
|
|
#endif |
34 |
|
|
#endif |
35 |
|
|
|
36 |
|
|
#include <time.h> |
37 |
greg |
2.2 |
#include <signal.h> |
38 |
|
|
|
39 |
greg |
2.8 |
#ifdef __cplusplus |
40 |
|
|
extern "C" { |
41 |
|
|
#endif |
42 |
rschregle |
2.3 |
|
43 |
greg |
2.1 |
/* Time at start & last report */ |
44 |
|
|
extern time_t repStartTime, repLastTime; |
45 |
|
|
/* Report progress & completion counters */ |
46 |
rschregle |
2.7 |
extern unsigned long repProgress, repComplete, repEmitted; |
47 |
greg |
2.1 |
|
48 |
|
|
|
49 |
|
|
void pmapDistribReport (); |
50 |
|
|
/* Report photon distribution progress */ |
51 |
|
|
|
52 |
|
|
void pmapPreCompReport (); |
53 |
|
|
/* Report global photon precomputation progress */ |
54 |
|
|
|
55 |
|
|
void pmapBiasCompReport (char *stats); |
56 |
|
|
/* Append full bias compensation statistics to stats; interface to |
57 |
|
|
* rpict's report() */ |
58 |
rschregle |
2.7 |
|
59 |
|
|
#ifdef PMAP_OOC |
60 |
|
|
void pmapOOCCacheReport (char *stats); |
61 |
|
|
/* Append full OOC I/O cache statistics to stats; interface to rpict's |
62 |
|
|
* report() */ |
63 |
|
|
#endif |
64 |
greg |
2.8 |
|
65 |
|
|
#ifdef __cplusplus |
66 |
|
|
} |
67 |
|
|
#endif |
68 |
|
|
|
69 |
greg |
2.1 |
#endif |