add more tracy calls in documentstore
This commit is contained in:
parent
9f688cf4ed
commit
4316524226
@ -302,6 +302,9 @@ fn garbageCollectionCImports(self: *DocumentStore) error{OutOfMemory}!void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn garbageCollectionBuildFiles(self: *DocumentStore) error{OutOfMemory}!void {
|
fn garbageCollectionBuildFiles(self: *DocumentStore) error{OutOfMemory}!void {
|
||||||
|
const tracy_zone = tracy.trace(@src());
|
||||||
|
defer tracy_zone.end();
|
||||||
|
|
||||||
var reachable_build_files = std.StringHashMapUnmanaged(void){};
|
var reachable_build_files = std.StringHashMapUnmanaged(void){};
|
||||||
defer reachable_build_files.deinit(self.allocator);
|
defer reachable_build_files.deinit(self.allocator);
|
||||||
|
|
||||||
@ -521,6 +524,9 @@ fn uriAssociatedWithBuild(
|
|||||||
build_file: BuildFile,
|
build_file: BuildFile,
|
||||||
uri: Uri,
|
uri: Uri,
|
||||||
) error{OutOfMemory}!bool {
|
) error{OutOfMemory}!bool {
|
||||||
|
const tracy_zone = tracy.trace(@src());
|
||||||
|
defer tracy_zone.end();
|
||||||
|
|
||||||
var checked_uris = std.StringHashMap(void).init(self.allocator);
|
var checked_uris = std.StringHashMap(void).init(self.allocator);
|
||||||
defer {
|
defer {
|
||||||
var it = checked_uris.iterator();
|
var it = checked_uris.iterator();
|
||||||
@ -750,6 +756,9 @@ pub fn collectDependencies(
|
|||||||
handle: Handle,
|
handle: Handle,
|
||||||
dependencies: *std.ArrayListUnmanaged(Uri),
|
dependencies: *std.ArrayListUnmanaged(Uri),
|
||||||
) error{OutOfMemory}!void {
|
) error{OutOfMemory}!void {
|
||||||
|
const tracy_zone = tracy.trace(@src());
|
||||||
|
defer tracy_zone.end();
|
||||||
|
|
||||||
try dependencies.ensureUnusedCapacity(allocator, handle.import_uris.items.len);
|
try dependencies.ensureUnusedCapacity(allocator, handle.import_uris.items.len);
|
||||||
for (handle.import_uris.items) |uri| {
|
for (handle.import_uris.items) |uri| {
|
||||||
dependencies.appendAssumeCapacity(try allocator.dupe(u8, uri));
|
dependencies.appendAssumeCapacity(try allocator.dupe(u8, uri));
|
||||||
|
Loading…
Reference in New Issue
Block a user