Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • SWIFTsim SWIFTsim
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 52
    • Issues 52
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • SWIFT
  • SWIFTsimSWIFTsim
  • Merge requests
  • !757

Memory allocations logger

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Peter W. Draper requested to merge memreport-swift into master Mar 13, 2019
  • Overview 19
  • Commits 50
  • Changes 28

To track the use of memory in SWIFT this change adds an optional logger that logs all the calls to the swift_memalign, swift_malloc, swift_calloc and swift_free functions. These logs can be dumped to form a labelled timeline of allocation and deallocation, which can be post processed to also report the amount of memory in use.

When enabled and the application exits using the error() macro an attempt to dump the current allocations is made, this will include the failed memory allocation if that was the call that generated the error.

Fixes #414 (closed) and supersedes !527 (closed)

Edited Mar 28, 2019 by Peter W. Draper
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: memreport-swift