Changeset 31153 for trunk/psModules/src/extras
- Timestamp:
- Apr 4, 2011, 1:04:41 PM (15 years ago)
- Location:
- trunk/psModules
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
src/extras/pmVisual.c (modified) (3 diffs)
-
src/extras/pmVisualUtils.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
- Property svn:ignore
-
old new 28 28 ChangeLog 29 29 psmodules-*.tar.* 30 a.out.dSYM
-
- Property svn:ignore
-
trunk/psModules/src/extras/pmVisual.c
r30623 r31153 1 /** The following are a collection of core procedures to aid the creation of vis aual diagnostics1 /** The following are a collection of core procedures to aid the creation of visual diagnostics 2 2 * @author Chris Beaumont, IfA 3 3 * @date January 23, 2008 … … 80 80 81 81 bool pmVisualInitWindow (int *kapid, char *name) { 82 82 83 if (*kapid == -1) { 83 84 *kapid = KapaOpenNamedSocket("kapa", name); 84 85 if (*kapid == -1) { 85 fprintf (stderr, "Failure to open kapa .\n");86 isVisual = false;86 fprintf (stderr, "Failure to open kapa; visual mode disabled.\n"); 87 pmVisualSetVisual(false); 87 88 return false; 88 89 } … … 255 256 } 256 257 258 if (increasing) { 259 fprintf (stderr, "plotting points scaled from %f to %f\n", zmin, zmax); 260 } else { 261 fprintf (stderr, "plotting points scaled from %f to %f\n", zmax, zmin); 262 } 263 257 264 float range = zmax - zmin; 258 265 if (range == 0.0) { -
trunk/psModules/src/extras/pmVisualUtils.c
r29004 r31153 16 16 #include <pslib.h> 17 17 18 #include <pmVisual.h> 18 19 #include <pmVisualUtils.h> 19 20 … … 89 90 } 90 91 92 // turn on overall visualization 93 pmVisualSetVisual(true); 94 91 95 // If the component name has no leading dot, then supply it. 92 96 if (comp[0] != '.') { … … 145 149 PS_ASSERT_STRING_NON_EMPTY(func, false); 146 150 147 // return true if level is set to be shown 151 // if visualization is turned off, just skip 152 if (!pmVisualIsVisual()) return false; 153 154 // return true if level is set to be shown 148 155 FACILITY(facility, func, name); 156 149 157 bool valid = level <= getLevel(facility); 150 158
Note:
See TracChangeset
for help on using the changeset viewer.
