Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
2005-10-07 Ben Maurer <bmaurer@ximian.com>
Browse files Browse the repository at this point in the history
	* gc-profiler.c: Patch from Michal Moskal to make sure things work
	on amd64.


svn path=/trunk/heap-prof/; revision=51454
  • Loading branch information
Ben Maurer committed Oct 7, 2005
1 parent 890e08f commit a864be4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
5 changes: 5 additions & 0 deletions src/runtime-profiler/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2005-10-07 Ben Maurer <bmaurer@ximian.com>

* gc-profiler.c: Patch from Michal Moskal to make sure things work
on amd64.

2005-07-26 Ben Maurer <bmaurer@ximian.com>

* gc-profiler.c: Patch from Brion Vibber Don't use obsolete
Expand Down
28 changes: 16 additions & 12 deletions src/runtime-profiler/gc-profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ typedef enum {
HEAP_PROF_EVENT_CHECKPOINT = 2
} HeapProfEvent;

typedef guint32 HeapProfEvent32;

typedef struct AllocRec AllocRec;

typedef struct {
#define PACK __attribute__ ((packed))

typedef struct PACK {
guint64 alloc_pos;
guint32 time;
guint32 alloc_ctx;
Expand Down Expand Up @@ -99,45 +103,45 @@ static const guint32 heap_prof_version = 6;

#define CHECKPOINT_SPACING (1024*1024) /* 1 MB */

typedef struct {
typedef struct PACK {
guint8 signature [16];
guint32 version;
} HeapProfHeader;

typedef struct {
typedef struct PACK {
guint32 time;
guint32 alloc_ctx;
} HeapProfAllocationRec;


typedef struct {
typedef struct PACK {
guint32 time;
HeapProfEvent event;
HeapProfEvent32 event;
guint32 event_num;

guint32 context_size;
guint32 type_size;
} HeapProfCheckpointRec;

typedef struct {
typedef struct PACK {
guint32 time;
HeapProfEvent event;
HeapProfEvent32 event;
guint32 event_num;

HeapProfGcFreedRec freed [MONO_ZERO_LEN_ARRAY];
} HeapProfGCRec;

typedef struct {
typedef struct PACK {
guint32 time;
HeapProfEvent event;
HeapProfEvent32 event;
guint32 event_num;

guint32 new_size;
} HeapProfHeapResizeRec;

typedef struct {
typedef struct PACK {
guint32 time;
HeapProfEvent event;
HeapProfEvent32 event;
guint32 size_high;
guint32 size_low;

Expand All @@ -163,7 +167,7 @@ typedef struct {
MonoMethod* methods [BT_SIZE];
} Backtrace;

typedef struct {
typedef struct PACK {
guint32 len;
guint32 methods [BT_SIZE];
} IdxBacktrace;
Expand Down

0 comments on commit a864be4

Please sign in to comment.