@@ -108,12 +108,66 @@ type SpawnEvent struct {
108108 Args []byte `json:"args"`
109109}
110110
111+ type ChannelCreateEvent struct {
112+ Id string `json:"id"`
113+ }
114+
115+ type ChannelSendEvent struct {
116+ Id string `json:"id"`
117+ Value []byte `json:"value"`
118+ }
119+
120+ type ChannelRecvEvent struct {
121+ Id string `json:"id"`
122+ }
123+
124+ type WaitGroupCreateEvent struct {
125+ Id string `json:"id"`
126+ Value int `json:"value"`
127+ }
128+
129+ type WaitGroupAddEvent struct {
130+ Id string `json:"id"`
131+ Value int `json:"value"`
132+ }
133+
134+ type WaitGroupDoneEvent struct {
135+ Id string `json:"id"`
136+ }
137+
138+ type WaitGroupWaitEvent struct {
139+ Id string `json:"id"`
140+ }
141+
142+ type MutexCreateEvent struct {
143+ Id string `json:"id"`
144+ }
145+
146+ type MutexAcquireEvent struct {
147+ Id string `json:"id"`
148+ }
149+
150+ type MutexReleaseEvent struct {
151+ Id string `json:"id"`
152+ }
153+
111154func (e HttpRequestEvent ) Key () string { return e .Url }
112155func (e HttpListenEvent ) Key () string { return e .Url }
113156func (e TimerEvent ) Key () string { return e .Id }
114157func (e CheckpointEvent ) Key () string { return e .Id }
115158func (e SpawnEvent ) Key () string { return e .Id }
116159
160+ func (e ChannelCreateEvent ) Key () string { return e .Id }
161+ func (e ChannelSendEvent ) Key () string { return e .Id }
162+ func (e ChannelRecvEvent ) Key () string { return e .Id }
163+ func (e WaitGroupCreateEvent ) Key () string { return e .Id }
164+ func (e WaitGroupAddEvent ) Key () string { return e .Id }
165+ func (e WaitGroupDoneEvent ) Key () string { return e .Id }
166+ func (e WaitGroupWaitEvent ) Key () string { return e .Id }
167+ func (e MutexCreateEvent ) Key () string { return e .Id }
168+ func (e MutexAcquireEvent ) Key () string { return e .Id }
169+ func (e MutexReleaseEvent ) Key () string { return e .Id }
170+
117171type EventNotify interface {
118172 Target () uint
119173 Index () uint
@@ -145,19 +199,110 @@ type SpawnEventNotify struct {
145199 Id string
146200 Err string
147201}
202+ type ChannelCreateEventNotify struct {
203+ Targ uint
204+ Idx uint
205+ Id string
206+ Err string
207+ }
208+ type ChannelSendEventNotify struct {
209+ Targ uint
210+ Idx uint
211+ Id string
212+ Err string
213+ }
214+ type ChannelRecvEventNotify struct {
215+ Targ uint
216+ Idx uint
217+ Id string
218+ Value []byte
219+ Err string
220+ }
221+ type WaitGroupCreateEventNotify struct {
222+ Targ uint
223+ Idx uint
224+ Id string
225+ Err string
226+ }
227+ type WaitGroupAddEventNotify struct {
228+ Targ uint
229+ Idx uint
230+ Id string
231+ Err string
232+ }
233+ type WaitGroupDoneEventNotify struct {
234+ Targ uint
235+ Idx uint
236+ Id string
237+ Err string
238+ }
239+ type WaitGroupWaitEventNotify struct {
240+ Targ uint
241+ Idx uint
242+ Id string
243+ Err string
244+ }
245+ type MutexCreateEventNotify struct {
246+ Targ uint
247+ Idx uint
248+ Id string
249+ Err string
250+ }
251+ type MutexAcquireEventNotify struct {
252+ Targ uint
253+ Idx uint
254+ Id string
255+ Err string
256+ }
257+ type MutexReleaseEventNotify struct {
258+ Targ uint
259+ Idx uint
260+ Id string
261+ Err string
262+ }
148263
149- func (e HttpListenEventNotify ) Target () uint { return e .Targ }
150- func (e TimerEventNotify ) Target () uint { return e .Targ }
151- func (e CheckpointEventNotify ) Target () uint { return e .Targ }
152- func (e SpawnEventNotify ) Target () uint { return e .Targ }
153- func (e HttpListenEventNotify ) Index () uint { return e .Idx }
154- func (e TimerEventNotify ) Index () uint { return e .Idx }
155- func (e CheckpointEventNotify ) Index () uint { return e .Idx }
156- func (e SpawnEventNotify ) Index () uint { return e .Idx }
157- func (e HttpListenEventNotify ) Key () string { return e .Url }
158- func (e TimerEventNotify ) Key () string { return e .Id }
159- func (e CheckpointEventNotify ) Key () string { return e .Id }
160- func (e SpawnEventNotify ) Key () string { return e .Id }
264+ func (e HttpListenEventNotify ) Target () uint { return e .Targ }
265+ func (e TimerEventNotify ) Target () uint { return e .Targ }
266+ func (e CheckpointEventNotify ) Target () uint { return e .Targ }
267+ func (e SpawnEventNotify ) Target () uint { return e .Targ }
268+ func (e ChannelCreateEventNotify ) Target () uint { return e .Targ }
269+ func (e ChannelSendEventNotify ) Target () uint { return e .Targ }
270+ func (e ChannelRecvEventNotify ) Target () uint { return e .Targ }
271+ func (e WaitGroupCreateEventNotify ) Target () uint { return e .Targ }
272+ func (e WaitGroupAddEventNotify ) Target () uint { return e .Targ }
273+ func (e WaitGroupDoneEventNotify ) Target () uint { return e .Targ }
274+ func (e WaitGroupWaitEventNotify ) Target () uint { return e .Targ }
275+ func (e MutexCreateEventNotify ) Target () uint { return e .Targ }
276+ func (e MutexAcquireEventNotify ) Target () uint { return e .Targ }
277+ func (e MutexReleaseEventNotify ) Target () uint { return e .Targ }
278+ func (e HttpListenEventNotify ) Index () uint { return e .Idx }
279+ func (e TimerEventNotify ) Index () uint { return e .Idx }
280+ func (e CheckpointEventNotify ) Index () uint { return e .Idx }
281+ func (e SpawnEventNotify ) Index () uint { return e .Idx }
282+ func (e ChannelCreateEventNotify ) Index () uint { return e .Idx }
283+ func (e ChannelSendEventNotify ) Index () uint { return e .Idx }
284+ func (e ChannelRecvEventNotify ) Index () uint { return e .Idx }
285+ func (e WaitGroupCreateEventNotify ) Index () uint { return e .Idx }
286+ func (e WaitGroupAddEventNotify ) Index () uint { return e .Idx }
287+ func (e WaitGroupDoneEventNotify ) Index () uint { return e .Idx }
288+ func (e WaitGroupWaitEventNotify ) Index () uint { return e .Idx }
289+ func (e MutexCreateEventNotify ) Index () uint { return e .Idx }
290+ func (e MutexAcquireEventNotify ) Index () uint { return e .Idx }
291+ func (e MutexReleaseEventNotify ) Index () uint { return e .Idx }
292+ func (e HttpListenEventNotify ) Key () string { return e .Url }
293+ func (e TimerEventNotify ) Key () string { return e .Id }
294+ func (e CheckpointEventNotify ) Key () string { return e .Id }
295+ func (e SpawnEventNotify ) Key () string { return e .Id }
296+ func (e ChannelCreateEventNotify ) Key () string { return e .Id }
297+ func (e ChannelSendEventNotify ) Key () string { return e .Id }
298+ func (e ChannelRecvEventNotify ) Key () string { return e .Id }
299+ func (e WaitGroupCreateEventNotify ) Key () string { return e .Id }
300+ func (e WaitGroupAddEventNotify ) Key () string { return e .Id }
301+ func (e WaitGroupDoneEventNotify ) Key () string { return e .Id }
302+ func (e WaitGroupWaitEventNotify ) Key () string { return e .Id }
303+ func (e MutexCreateEventNotify ) Key () string { return e .Id }
304+ func (e MutexAcquireEventNotify ) Key () string { return e .Id }
305+ func (e MutexReleaseEventNotify ) Key () string { return e .Id }
161306
162307type Trace struct {
163308 ID uint `db:"id"`
0 commit comments