ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapdiag.h
Revision: 2.7
Committed: Tue May 17 17:39:47 2016 UTC (7 years, 11 months ago) by rschregle
Content type: text/plain
Branch: MAIN
CVS Tags: rad5R4, rad5R2, rad5R3, rad5R1, HEAD
Changes since 2.6: +10 -2 lines
Log Message:
Initial import of ooC photon map

File Contents

# Content
1 /* RCSid $Id: pmapdiag.h,v 1.5 2016/04/25 18:27:41 taschreg Exp taschreg $ */
2
3 /*
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 (c) Lucerne University of Applied Sciences and Arts,
10 supported by the Swiss National Science Foundation (SNSF, #147053)
11 ==================================================================
12
13 $Id: pmapdiag.h,v 1.5 2016/04/25 18:27:41 taschreg Exp taschreg $
14 */
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 #include <signal.h>
38
39
40 /* Time at start & last report */
41 extern time_t repStartTime, repLastTime;
42 /* Report progress & completion counters */
43 extern unsigned long repProgress, repComplete, repEmitted;
44
45
46 void pmapDistribReport ();
47 /* Report photon distribution progress */
48
49 void pmapPreCompReport ();
50 /* Report global photon precomputation progress */
51
52 void pmapBiasCompReport (char *stats);
53 /* Append full bias compensation statistics to stats; interface to
54 * rpict's report() */
55
56 #ifdef PMAP_OOC
57 void pmapOOCCacheReport (char *stats);
58 /* Append full OOC I/O cache statistics to stats; interface to rpict's
59 * report() */
60 #endif
61
62 #endif