/* * This backend uses the REST API only to host static instances, * without any Websocket connection. */ import { fetchApi } from "../utils" export default class StaticBackend { constructor(store) { this.store = store this.onOpen() } onOpen() { this.fetchData("flows") this.fetchData("settings") // this.fetchData("events") # TODO: Add events log to static viewer. } fetchData(resource) { fetchApi(`./${resource}`) .then(res => res.json()) .then(json => { this.receive(resource, json) }) } receive(resource, data) { let type = `${resource}_RECEIVE`.toUpperCase() this.store.dispatch({ type, cmd: "receive", resource, data }) } } f60f8616b37996d6da32fcdcfecec'/> xenJames
aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/perfc.c
blob: 925ac77264b0aebd63c84e30206401fd265b3cc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104