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