- Timestamp:
- 2005-11-09T01:02:05Z (19 years ago)
- Branches:
- master
- Children:
- 2d99c97
- Parents:
- 68b50b5f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/proxy.c
r68b50b5f r21d09ac 107 107 } 108 108 109 #ifdef PROXYPROFILER110 struct proxyprofiler111 {112 GaimInputFunction function;113 gpointer data;114 115 int count;116 117 struct proxyprofiler *next;118 } *pp = NULL;119 120 void proxyprofiler_dump()121 {122 struct proxyprofiler *l;123 char s[128];124 FILE *fp;125 126 sprintf( s, "proxyprofiler.%d", (int) getpid() );127 fp = fopen( s, "w" );128 129 fprintf( fp, "%-18s %-18s %10s\n", "Function", "Data", "Count" );130 for( l = pp; l; l = l->next )131 fprintf( fp, "0x%-16x 0x%-16x %10d\n", (int) l->function, (int) l->data, l->count );132 133 fclose( fp );134 }135 #endif136 137 109 static gboolean gaim_io_invoke(GIOChannel *source, GIOCondition condition, gpointer data) 138 110 { … … 140 112 GaimInputCondition gaim_cond = 0; 141 113 142 #ifdef PROXYPROFILER143 struct proxyprofiler *l;144 145 for( l = pp; l; l = l->next )146 {147 if( closure->function == l->function && closure->data == l->data )148 break;149 }150 if( l )151 {152 l->count ++;153 }154 else155 {156 l = g_new0( struct proxyprofiler, 1 );157 l->function = closure->function;158 l->data = closure->data;159 l->count = 1;160 161 l->next = pp;162 pp = l;163 }164 #endif165 166 114 if (condition & GAIM_READ_COND) 167 115 gaim_cond |= GAIM_INPUT_READ;
Note: See TracChangeset
for help on using the changeset viewer.