Commit Graph

66 Commits

Author SHA1 Message Date
Holger Vogt 6cd2e245c4 Add resource info on memory used and available for macOS 2019-11-30 11:34:35 +01:00
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
2019-03-21 16:12:36 +01:00
dwarning 9e663f45e4 remove some ugly warnings 2018-12-17 22:57:51 +01:00
Holger Vogt c98b472366 enable GetProcessMemoryInfo for shared ngspice made with MSVC 2018-11-18 16:05:06 +01:00
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
2018-11-18 16:04:26 +01:00
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().
2018-11-18 16:03:06 +01:00
dwarning 5c31aec164 prevent core dump to get the baseaddress 2018-10-16 14:13:17 +02:00
Holger Vogt 8c9b18ef7e fix a small memory leak 2018-08-19 17:24:10 +02:00
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
2018-08-19 15:00:46 +02:00
h_vogt 7c06cb2d12 don't mess with WINVER
not necessairy for current Windows versions
2017-02-22 19:36:37 +01:00
rlar 4b5669a51c frontend/resource.c, fix bizarre time mathematics 2016-03-22 15:24:25 +01:00
rlar 36064b624a frontend/resource.c, rename time variables to denote their actual units 2016-03-22 15:24:20 +01:00
rlar 1125b293e3 frontend/resource.c, bug fix, lastusec actually denotes milliseconds 2016-03-22 15:23:53 +01:00
rlar 03630efb8c remove ancient artefact `#ifdef ipsc' 2016-03-22 15:23:46 +01:00
h_vogt d7e291c53a HAS_WINDOWS --> HAS_WINGUI
allow compilation on MS Windows without GUI
2013-12-31 12:56:57 +01:00
rlar 11579d9369 cleanup, ngspice/config.h is already in ngspice/ngspice.h, #1/2 (easy ones) 2012-10-06 12:12:08 +02:00
rlar fe1acd3757 src/frontend/** remove superfluous `return' invocations 2012-09-22 19:33:55 +02:00
rlar 7454a6d486 src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...

checked for object file invariance on linux
2012-09-20 20:30:53 +02:00
rlar 467c9381a6 fix printf/scanf format strings to match `unsigned long long' arguments 2012-01-11 19:12:15 +00:00
rlar 4ca58067a2 #2/6 config.h --> ngspice/config.h, #include's 2011-12-27 11:33:01 +00:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar e42fa8ba06 swallow warnings 2011-10-31 10:53:51 +00:00
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
pnenzi 5ba0b8b86c Statistics patch: added netlist loading and parsing time in acct command.
Added devhelp command to obtain information about available devices and device parameters
Added inventory command to print the number of instances per device.
2011-08-09 18:41:36 +00:00
rlar b8cc44efad complete `replace size_t by unsigned long long' 2011-08-06 13:57:19 +00:00
h_vogt 36f6eb6a89 bug no. 3386184 2011-08-06 07:53:48 +00:00
rlar fd2301393a use #include <inttypes.h> and size_t for portability 2011-07-23 20:24:30 +00:00
rlar 23056573d8 code cleanup, drop NULL pointer casts 2011-04-28 15:59:36 +00:00
rlar 241783d0b5 use for(;;) instead of while(1) to muffle some visual-C warnings 2010-09-07 20:07:57 +00:00
rlar f7f4a7dd91 tiny, fix two casts 2010-07-11 16:02:23 +00:00
rlar 72fc1a0186 use CKTcircuit instead of void*, #1/4 2010-07-07 17:26:05 +00:00
h_vogt 2dc814f613 patches by R. Larice 2009-12-31 15:37:08 +00:00
dwarning 07e06cf701 initialize local variables 2009-10-04 11:48:37 +00:00
pnenzi b6a05e9095 Fix for memory limit from T. D. Dean 2009-08-08 17:38:23 +00:00
h_vogt fd1d3c75e6 allow compilation into a build directory 2009-04-17 21:59:04 +00:00
h_vogt e43430a669 memory leaks removed 2009-04-05 08:02:03 +00:00
dwarning 59917a149e init rusage 2009-04-01 19:33:38 +00:00
dwarning e47189a79e meminfo api usage not for commandline version 2009-02-01 18:10:01 +00:00
dwarning 370f80c121 resource info under Windows w/o psapi 2009-01-14 20:45:53 +00:00
h_vogt 6ba6c6f17f streamline rsource info under Windows 2008-12-31 11:01:49 +00:00
h_vogt d618da1a22 fprintf(... replaced by fprintf(stdout,.. 2008-12-23 18:00:10 +00:00
dwarning d5786196b6 found a way to compile w/o psapi under MS VC++ 6.0, prevent some warnings 2008-11-19 19:45:28 +00:00
h_vogt 00fd0da88a correct __MINGW32__ tag line 41 2008-10-11 17:31:15 +00:00
h_vogt 3dc3d42553 Small changes, e.g. _MS_VER macro, added to allow compilation of tclspice with MS VC++ 2008 2008-10-04 22:44:52 +00:00
h_vogt 4b055a4ca8 Small changes to allow compilation with MS Visual C++ 2008 2008-09-21 22:18:06 +00:00
h_vogt 77925f7f48 memory information from /proc/... (LINUX) or api functions (Windows) 2008-05-10 16:07:22 +00:00
dwarning 49991111c7 prevent ext. warnings 2007-11-28 17:29:28 +00:00
dwarning 248f0f374e include prototype for timediff 2007-11-14 20:26:01 +00:00
sjborley 869f5add68 Fixed problems of reporting resource usage for MacOSX (should help other platforms too). 2005-10-15 13:56:44 +00:00