Skip to content

Commit

Permalink
Rename allocation_tracker module.
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Dec 12, 2024
1 parent 19795a5 commit 73ac382
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 21 deletions.
10 changes: 10 additions & 0 deletions README.in
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ If this step fails, it's a bug. Please report it!

## Utilities

### com.io7m.jcoronado.utility.allocation_tracker

The `com.io7m.jcoronado.utility.allocation_tracker` module provides a simple
implementation of the `VulkanHostAllocatorType` interface that simply delegates
an existing allocator (such as `jemalloc`) but also tracks the current amount
of memory allocated for every allocation type.

Simply instantiate a `VulkanHostAllocatorTracker` instance and use it anywhere
the API accepts a `VulkanHostAllocatorType`.

### com.io7m.jcoronado.utility.swapchain

The `com.io7m.jcoronado.utility.swapchain` module provides a utility for
Expand Down
7 changes: 6 additions & 1 deletion com.io7m.jcoronado.documentation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.io7m.jcoronado.allocation_tracker</artifactId>
<artifactId>com.io7m.jcoronado.utility.allocation_tracker</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.io7m.jcoronado.utility.swapchain</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
requires com.io7m.jcoronado.vma;
requires com.io7m.jcoronado.api;
requires com.io7m.jcoronado.extensions.khr.surface.api;
requires com.io7m.jcoronado.allocation.tracker;
requires com.io7m.jcoronado.utility.allocation_tracker;
requires com.io7m.jcoronado.utility.swapchain;
requires com.io7m.jcoronado.lwjgl;
}
2 changes: 1 addition & 1 deletion com.io7m.jcoronado.examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>com.io7m.jcoronado.allocation_tracker</artifactId>
<artifactId>com.io7m.jcoronado.utility.allocation_tracker</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.io7m.jcoronado.examples;

import com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.api.VulkanApplicationInfo;
import com.io7m.jcoronado.api.VulkanBufferCopy;
import com.io7m.jcoronado.api.VulkanBufferCreateInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.io7m.jcoronado.examples;

import com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.api.VulkanApplicationInfo;
import com.io7m.jcoronado.api.VulkanAttachmentDescription;
import com.io7m.jcoronado.api.VulkanAttachmentReference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.io7m.jcoronado.examples;

import com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.api.VulkanApplicationInfo;
import com.io7m.jcoronado.api.VulkanClearValueColorFloatingPoint;
import com.io7m.jcoronado.api.VulkanCommandBufferSubmitInfo;
Expand All @@ -29,7 +29,6 @@
import com.io7m.jcoronado.api.VulkanImageAspectFlag;
import com.io7m.jcoronado.api.VulkanImageMemoryBarrier;
import com.io7m.jcoronado.api.VulkanImageSubresourceRange;
import com.io7m.jcoronado.api.VulkanImageUsageFlag;
import com.io7m.jcoronado.api.VulkanInstanceCreateInfo;
import com.io7m.jcoronado.api.VulkanLayerProperties;
import com.io7m.jcoronado.api.VulkanLayers;
Expand All @@ -53,7 +52,6 @@
import com.io7m.jcoronado.extensions.ext_debug_utils.api.VulkanDebugUtilsType;
import com.io7m.jcoronado.extensions.ext_layer_settings.api.VulkanLayerSettingsCreateInfo;
import com.io7m.jcoronado.extensions.khr_surface.api.VulkanExtKHRSurfaceType;
import com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanCompositeAlphaFlagKHR;
import com.io7m.jcoronado.extensions.khr_swapchain.api.VulkanExtKHRSwapChainType;
import com.io7m.jcoronado.layers.khronos_validation.api.VulkanValidationValidateSync;
import com.io7m.jcoronado.lwjgl.VulkanLWJGLHostAllocatorJeMalloc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.io7m.jcoronado.examples;

import com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.api.VulkanApplicationInfo;
import com.io7m.jcoronado.api.VulkanAttachmentDescription;
import com.io7m.jcoronado.api.VulkanAttachmentReference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.io7m.jcoronado.examples;

import com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.api.VulkanApplicationInfo;
import com.io7m.jcoronado.api.VulkanAttachmentDescription;
import com.io7m.jcoronado.api.VulkanAttachmentReference;
Expand Down Expand Up @@ -94,7 +94,6 @@
import com.io7m.jcoronado.api.VulkanSemaphoreBinaryCreateInfo;
import com.io7m.jcoronado.api.VulkanSemaphoreBinaryType;
import com.io7m.jcoronado.api.VulkanSemaphoreSubmitInfo;
import com.io7m.jcoronado.api.VulkanSemaphoreType;
import com.io7m.jcoronado.api.VulkanShaderModuleCreateInfo;
import com.io7m.jcoronado.api.VulkanShaderModuleType;
import com.io7m.jcoronado.api.VulkanSharingMode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.io7m.jcoronado.examples;

import com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.api.VulkanApplicationInfo;
import com.io7m.jcoronado.api.VulkanBufferCreateInfo;
import com.io7m.jcoronado.api.VulkanException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.io7m.jcoronado.examples;

import com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker;
import com.io7m.jcoronado.api.VulkanApplicationInfo;
import com.io7m.jcoronado.api.VulkanException;
import com.io7m.jcoronado.api.VulkanInstanceCreateInfo;
Expand Down
2 changes: 1 addition & 1 deletion com.io7m.jcoronado.examples/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</root>

<logger
name="com.io7m.jcoronado.allocation_tracker.VulkanHostAllocatorTracker"
name="com.io7m.jcoronado.utility.allocation_tracker.VulkanHostAllocatorTracker"
level="INFO"/>

</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<version>0.0.2-SNAPSHOT</version>
</parent>

<artifactId>com.io7m.jcoronado.allocation_tracker</artifactId>
<artifactId>com.io7m.jcoronado.utility.allocation_tracker</artifactId>

<packaging>jar</packaging>
<name>com.io7m.jcoronado.allocation_tracker</name>
<name>com.io7m.jcoronado.utility.allocation_tracker</name>
<description>Type-safe Vulkan frontend (Allocation tracker)</description>
<url>https://www.io7m.com/software/jcoronado</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/

package com.io7m.jcoronado.allocation_tracker;
package com.io7m.jcoronado.utility.allocation_tracker;

import com.io7m.jcoronado.api.VulkanHostAllocatorCallbacks;
import com.io7m.jcoronado.api.VulkanHostAllocatorType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

@Export
@Version("1.0.0")
package com.io7m.jcoronado.allocation_tracker;
package com.io7m.jcoronado.utility.allocation_tracker;

import org.osgi.annotation.bundle.Export;
import org.osgi.annotation.versioning.Version;
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* Type-safe Vulkan frontend (Allocation tracker)
*/

module com.io7m.jcoronado.allocation.tracker
module com.io7m.jcoronado.utility.allocation_tracker
{
requires static org.osgi.annotation.bundle;
requires static org.osgi.annotation.versioning;
Expand All @@ -27,5 +27,5 @@
requires org.slf4j;
requires it.unimi.dsi.fastutil;

exports com.io7m.jcoronado.allocation_tracker;
exports com.io7m.jcoronado.utility.allocation_tracker;
}
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<url>https://www.io7m.com/software/jcoronado</url>

<modules>
<module>com.io7m.jcoronado.allocation_tracker</module>
<module>com.io7m.jcoronado.api</module>
<module>com.io7m.jcoronado.documentation</module>
<module>com.io7m.jcoronado.examples</module>
Expand All @@ -34,6 +33,7 @@
<module>com.io7m.jcoronado.layers.lunarg_api_dump.api</module>
<module>com.io7m.jcoronado.lwjgl</module>
<module>com.io7m.jcoronado.tests</module>
<module>com.io7m.jcoronado.utility.allocation_tracker</module>
<module>com.io7m.jcoronado.utility.swapchain</module>
<module>com.io7m.jcoronado.vma</module>
</modules>
Expand Down

0 comments on commit 73ac382

Please sign in to comment.