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

# User Rev Content
1 rschregle 2.7 /* RCSid $Id: pmapdiag.h,v 1.5 2016/04/25 18:27:41 taschreg Exp taschreg $ */
2    
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 rschregle 2.7 $Id: pmapdiag.h,v 1.5 2016/04/25 18:27:41 taschreg Exp taschreg $
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 rschregle 2.3
40 greg 2.1 /* Time at start & last report */
41     extern time_t repStartTime, repLastTime;
42     /* Report progress & completion counters */
43 rschregle 2.7 extern unsigned long repProgress, repComplete, repEmitted;
44 greg 2.1
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 rschregle 2.7
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 greg 2.1
62     #endif