Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
09da79e1
Commit
09da79e1
authored
Apr 17, 2013
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put memory counter stuff in #ifdef _WIN32.
git-svn-id:
https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@21181
e7fa87d3-cd2b-0410-9028-fcbf551c1848
parent
1d923219
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
StandAlone.cpp
StandAlone/StandAlone.cpp
+5
-0
No files found.
StandAlone/StandAlone.cpp
View file @
09da79e1
...
...
@@ -253,7 +253,10 @@ bool CompileFile(const char *fileName, ShHandle compiler, int debugOptions, cons
{
int
ret
;
char
**
data
=
ReadFileData
(
fileName
);
#ifdef _WIN32
PROCESS_MEMORY_COUNTERS
counters
;
// just for memory leak testing
#endif
if
(
!
data
)
return
false
;
...
...
@@ -262,10 +265,12 @@ bool CompileFile(const char *fileName, ShHandle compiler, int debugOptions, cons
for
(
int
j
=
0
;
j
<
((
debugOptions
&
EDebugOpMemoryLeakMode
)
?
100
:
1
);
++
j
)
ret
=
ShCompile
(
compiler
,
data
,
OutputMultipleStrings
,
EShOptNone
,
resources
,
debugOptions
,
100
,
false
,
EShMsgDefault
);
#ifdef _WIN32
if
(
debugOptions
&
EDebugOpMemoryLeakMode
)
{
GetProcessMemoryInfo
(
GetCurrentProcess
(),
&
counters
,
sizeof
(
counters
));
printf
(
"Working set size: %d
\n
"
,
counters
.
WorkingSetSize
);
}
#endif
}
FreeFileData
(
data
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment