Skip to content

Commit

Permalink
Revert "Profile.Allocs: Add task and timestamp (JuliaLang#44055)" (Ju…
Browse files Browse the repository at this point in the history
…liaLang#44158)

This reverts commit bfc9431.
  • Loading branch information
DilumAluthge authored and LilithHafner committed Feb 22, 2022
1 parent 0e2b07b commit b7e9a3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
6 changes: 1 addition & 5 deletions src/gc-alloc-profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ struct jl_raw_alloc_t {
jl_datatype_t *type_address;
jl_raw_backtrace_t backtrace;
size_t size;
jl_task_t *task;
uint64_t timestamp;
};

// == These structs define the global singleton profile buffer that will be used by
Expand Down Expand Up @@ -134,9 +132,7 @@ void _maybe_record_alloc_to_profile(jl_value_t *val, size_t size, jl_datatype_t
profile.allocs.emplace_back(jl_raw_alloc_t{
type,
get_raw_backtrace(),
size,
jl_current_task,
cycleclock()
size
});
}

Expand Down
8 changes: 1 addition & 7 deletions stdlib/Profile/src/Allocs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ struct RawAlloc
type::Ptr{Type}
backtrace::RawBacktrace
size::Csize_t
task::Ptr{Cvoid}
timestamp::UInt64
end

# matches jl_profile_allocs_raw_results_t on the C side
Expand Down Expand Up @@ -123,8 +121,6 @@ struct Alloc
type::Any
stacktrace::StackTrace
size::Int
task::Ptr{Cvoid}
timestamp::UInt64
end

struct AllocResults
Expand Down Expand Up @@ -162,9 +158,7 @@ function decode_alloc(cache::BacktraceCache, raw_alloc::RawAlloc)::Alloc
Alloc(
load_type(raw_alloc.type),
stacktrace_memoized(cache, load_backtrace(raw_alloc.backtrace)),
UInt(raw_alloc.size),
raw_alloc.task,
raw_alloc.timestamp
UInt(raw_alloc.size)
)
end

Expand Down

0 comments on commit b7e9a3e

Please sign in to comment.