Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions plprofiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,6 @@ profiler_shmem_startup(void)
hash_ctl.hash = line_hash_fn;
hash_ctl.match = line_match_fn;
functions_shared = ShmemInitHash("plprofiler functions",
profiler_max_functions,
profiler_max_functions,
&hash_ctl,
HASH_ELEM | HASH_FUNCTION | HASH_COMPARE);
Expand All @@ -693,7 +692,6 @@ profiler_shmem_startup(void)
hash_ctl.hash = callgraph_hash_fn;
hash_ctl.match = callgraph_match_fn;
callgraph_shared = ShmemInitHash("plprofiler callgraph",
profiler_max_callgraph,
profiler_max_callgraph,
&hash_ctl,
HASH_ELEM | HASH_FUNCTION | HASH_COMPARE);
Expand Down
5 changes: 4 additions & 1 deletion plprofiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
#include "pgstat.h"
#include "plpgsql.h"
#include "storage/ipc.h"
#include "storage/lwlock.h"
#include "storage/shmem.h"
#include "storage/spin.h"
#include "utils/array.h"
#include "utils/builtins.h"
Expand All @@ -49,6 +51,7 @@
#include "utils/memutils.h"
#include "utils/palloc.h"
#include "utils/syscache.h"
#include "utils/tuplestore.h"

PG_MODULE_MAGIC;

Expand Down Expand Up @@ -161,7 +164,7 @@ typedef struct callGraphEntry

typedef struct
{
LWLockId lock;
LWLock *lock;
bool profiler_enabled_global;
int profiler_enabled_pid;
int profiler_collect_interval;
Expand Down