aboutsummaryrefslogtreecommitdiffstats
path: root/epan/app_mem_usage.c
AgeCommit message (Collapse)AuthorFilesLines
2018-03-24Update a comment.Guy Harris1-1/+8
Change-Id: I9a1f5ed85591202c52f26d4b3d63d8beb7578e15 Reviewed-on: https://code.wireshark.org/review/26623 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-03-24Don't rely on "xxx *yyy[N] = {};" compiling.Guy Harris1-28/+19
At least as I read C90 "6.5.7 Initialization" and C99 "6.7.8 Initialization", there must be at least one "initializer" in an "initializer-list", so nothing requires that the compiler accept, for example static const ws_mem_usage_t *memory_components[MAX_COMPONENTS] = { }; Bug: 14556 Change-Id: Ief1dbfee504ad5ef1d984390dc2da18deba7fb90 Reviewed-on: https://code.wireshark.org/review/26616 Petri-Dish: Guy Harris <guy@alum.mit.edu> Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-08epan: use SPDX indentifiers.Dario Lombardo1-13/+1
Skipping dissectors dir for now. Change-Id: I717b66bfbc7cc81b83f8c2cbc011fcad643796aa Reviewed-on: https://code.wireshark.org/review/25694 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-06-26app_mem_usage: rename shadow variableDario Lombardo1-4/+4
Change-Id: I0db888633118beeabfe4bb8fa6da419d0827c7c1 Reviewed-on: https://code.wireshark.org/review/16106 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-04-11Don't use the prohibited API open().Jeff Morriss1-1/+2
This open call is Linux-specific (so there's no harm in using open() rather than ws_open()) but this will keep checkAPIs happy. Change-Id: I5695c1bd3b1a4af320ef0acfa1a8162c1d9f14e1 Reviewed-on: https://code.wireshark.org/review/14879 Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-10-10Add editor modelines; Adjust whitespace as needed.Bill Meier1-8/+21
Change-Id: I3dc57f4c2ca57585103e3b71503ac4c332903e50 Reviewed-on: https://code.wireshark.org/review/4594 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-25Remove trailing whitespaceBill Meier1-2/+2
Change-Id: I8116f63ff88687c8db3fd6e8e23b22ab2f759af0 Reviewed-on: https://code.wireshark.org/review/385 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2013-08-06app_mem_usage fixes:Jakub Zawadzki1-1/+5
- Add missing feature test macro for pread() - Fix $Id$ line svn path=/trunk/; revision=51169
2013-07-31Linux: add support for getting total/rss from /proc/self/statmJakub Zawadzki1-0/+86
svn path=/trunk/; revision=51070
2013-07-31Add some very basic framework to fetch statistics of memory usage per component.Jakub Zawadzki1-7/+70
Use it in memory_dlg. svn path=/trunk/; revision=51069
2013-07-30Remove dirty (and not compiling) code from app_mem_usage.c, need rewrite if ↵Jakub Zawadzki1-78/+1
really needed. svn path=/trunk/; revision=51035
2013-07-30Move a few variables inside the appropriate ifdefs.Evan Huus1-3/+5
svn path=/trunk/; revision=51029
2013-07-30Add missing includes.Anders Broman1-2/+9
svn path=/trunk/; revision=51028
2013-07-30Add a routine to get application memory usage to epan.Anders Broman1-0/+130
svn path=/trunk/; revision=51023