Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8102130

Option to track texture memory allocation

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:

      Description

      Provide a system property that can be set at start-up to log texture allocation and disposal.
      Logs should show the number of live textures, the total number allocated, the number of pixels currently allocated in textures and the pixel size of the current allocation. For example:

      prism.trackTextures: Allocated texture #5123 of size 600x600 (currently allocated 8.2M pixels in 40 textures)
      prism.trackTextures: Freed texture of size 600x600 (currently allocated 7.9M pixels in 39 textures)

      This will help us to diagnose memory problems in applications.
      Keeping track of the total number will help us see when we are constantly allocating and freeing textures and need to consider caching.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              flar Jim Graham
              Reporter:
              dblaukop Daniel Blaukopf (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: