Holger Vogt
13a6e042f6
remove 'unreachable code' warning
6 years ago
Holger Vogt
fa58223204
update for Linux
7 years ago
Holger Vogt
67f6fda216
Complete redesign of memory monitoring in resource.c.
Acquiring memory size is done by four functions
getMemorySize, getAvailableMemorySize, getPeakRSS,
and getCurrentRSS.
Time data are still obtained without code modifications.
7 years ago
Holger Vogt
6cd2e245c4
Add resource info on memory used and available for macOS
7 years ago
Holger Vogt
9dd47e3029
Remove memory warning message in shared lib
False warning on some OSs, especially on Linux when loaded during runtime.
The caller then has to take care of memory available
7 years ago
dwarning
9e663f45e4
remove some ugly warnings
7 years ago
Holger Vogt
c98b472366
enable GetProcessMemoryInfo for shared ngspice made with MSVC
7 years ago
Holger Vogt
da75066302
update to resource.c:
proc/self/statm is up-scaled by page size
up and down scaling by 1024 removed
GetProcessMemoryInfo access simplified
pre-processor flags simplified
tiny format changes
7 years ago
Holger Vogt
cf6722af17
Enable function GetProcessMemoryInfo() to get reliable memory usage data
for MINGW and MSVC console, WinGui and MSVC shared ngspice.
MINGW shared ngspice does not link to psapi.dll, so cannot
apply GetProcessMemoryInfo(), but sticks to unreliable function
GlobalMemoryStatusEx().
7 years ago
dwarning
5c31aec164
prevent core dump to get the baseaddress
8 years ago
Holger Vogt
8c9b18ef7e
fix a small memory leak
8 years ago
Holger Vogt
7e4b68c708
update to the rusage command:
print total analysis time, total elapsed time, and
memory information (OS dependant) if rusage is given
without parameters
8 years ago
h_vogt
7c06cb2d12
don't mess with WINVER
not necessairy for current Windows versions
9 years ago
rlar
4b5669a51c
frontend/resource.c, fix bizarre time mathematics
10 years ago
rlar
36064b624a
frontend/resource.c, rename time variables to denote their actual units
10 years ago
rlar
1125b293e3
frontend/resource.c, bug fix, lastusec actually denotes milliseconds
10 years ago
rlar
03630efb8c
remove ancient artefact `#ifdef ipsc'
10 years ago
h_vogt
d7e291c53a
HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
13 years ago
rlar
11579d9369
cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones)
14 years ago
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
14 years ago
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
14 years ago
rlar
467c9381a6
fix printf/scanf format strings to match `unsigned long long' arguments
14 years ago
rlar
4ca58067a2
#2/6 config.h --> ngspice/config.h, #include's
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
rlar
e42fa8ba06
swallow warnings
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
pnenzi
5ba0b8b86c
Statistics patch: added netlist loading and parsing time in acct command.
15 years ago
rlar
b8cc44efad
complete `replace size_t by unsigned long long'
15 years ago
h_vogt
36f6eb6a89
bug no. 3386184
15 years ago
rlar
fd2301393a
use #include <inttypes.h> and size_t for portability
15 years ago
rlar
23056573d8
code cleanup, drop NULL pointer casts
15 years ago
rlar
241783d0b5
use for(;;) instead of while(1) to muffle some visual-C warnings
16 years ago
rlar
f7f4a7dd91
tiny, fix two casts
16 years ago
rlar
72fc1a0186
use CKTcircuit instead of void*, #1/4
16 years ago
h_vogt
2dc814f613
patches by R. Larice
16 years ago
dwarning
07e06cf701
initialize local variables
17 years ago
pnenzi
b6a05e9095
Fix for memory limit from T. D. Dean
17 years ago
h_vogt
fd1d3c75e6
allow compilation into a build directory
17 years ago
h_vogt
e43430a669
memory leaks removed
17 years ago
dwarning
59917a149e
init rusage
17 years ago
dwarning
e47189a79e
meminfo api usage not for commandline version
17 years ago
dwarning
370f80c121
resource info under Windows w/o psapi
17 years ago
h_vogt
6ba6c6f17f
streamline rsource info under Windows
17 years ago
h_vogt
d618da1a22
fprintf(... replaced by fprintf(stdout,..
18 years ago
dwarning
d5786196b6
found a way to compile w/o psapi under MS VC++ 6.0, prevent some warnings
18 years ago
h_vogt
00fd0da88a
correct __MINGW32__ tag line 41
18 years ago
h_vogt
3dc3d42553
Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008
18 years ago
h_vogt
4b055a4ca8
Small changes to allow compilation with MS Visual C++ 2008
18 years ago
h_vogt
77925f7f48
memory information from /proc/... (LINUX) or api functions (Windows)
18 years ago