Skip to content

Commit 5cff625

Browse files
authored
Revert "Profile.Allocs: Add task and timestamp (#44055)" (#44158)
This reverts commit bfc9431.
1 parent 8a9884d commit 5cff625

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/gc-alloc-profiler.cpp

+1-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ struct jl_raw_alloc_t {
2020
jl_datatype_t *type_address;
2121
jl_raw_backtrace_t backtrace;
2222
size_t size;
23-
jl_task_t *task;
24-
uint64_t timestamp;
2523
};
2624

2725
// == These structs define the global singleton profile buffer that will be used by
@@ -134,9 +132,7 @@ void _maybe_record_alloc_to_profile(jl_value_t *val, size_t size, jl_datatype_t
134132
profile.allocs.emplace_back(jl_raw_alloc_t{
135133
type,
136134
get_raw_backtrace(),
137-
size,
138-
jl_current_task,
139-
cycleclock()
135+
size
140136
});
141137
}
142138

stdlib/Profile/src/Allocs.jl

+1-7
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ struct RawAlloc
1919
type::Ptr{Type}
2020
backtrace::RawBacktrace
2121
size::Csize_t
22-
task::Ptr{Cvoid}
23-
timestamp::UInt64
2422
end
2523

2624
# matches jl_profile_allocs_raw_results_t on the C side
@@ -123,8 +121,6 @@ struct Alloc
123121
type::Any
124122
stacktrace::StackTrace
125123
size::Int
126-
task::Ptr{Cvoid}
127-
timestamp::UInt64
128124
end
129125

130126
struct AllocResults
@@ -162,9 +158,7 @@ function decode_alloc(cache::BacktraceCache, raw_alloc::RawAlloc)::Alloc
162158
Alloc(
163159
load_type(raw_alloc.type),
164160
stacktrace_memoized(cache, load_backtrace(raw_alloc.backtrace)),
165-
UInt(raw_alloc.size),
166-
raw_alloc.task,
167-
raw_alloc.timestamp
161+
UInt(raw_alloc.size)
168162
)
169163
end
170164

0 commit comments

Comments
 (0)