Skip to content

Commit a263edf

Browse files
apply cargo fmt (#2968)
1 parent 1896f61 commit a263edf

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

profiling/src/timeline.rs

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,21 +122,61 @@ macro_rules! create_sleeping_fn {
122122
// Functions that are sleeping
123123
create_sleeping_fn!(ddog_php_prof_sleep, SLEEP_HANDLER, State::Sleeping);
124124
create_sleeping_fn!(ddog_php_prof_usleep, USLEEP_HANDLER, State::Sleeping);
125-
create_sleeping_fn!(ddog_php_prof_time_nanosleep, TIME_NANOSLEEP_HANDLER, State::Sleeping);
126-
create_sleeping_fn!(ddog_php_prof_time_sleep_until, TIME_SLEEP_UNTIL_HANDLER, State::Sleeping);
125+
create_sleeping_fn!(
126+
ddog_php_prof_time_nanosleep,
127+
TIME_NANOSLEEP_HANDLER,
128+
State::Sleeping
129+
);
130+
create_sleeping_fn!(
131+
ddog_php_prof_time_sleep_until,
132+
TIME_SLEEP_UNTIL_HANDLER,
133+
State::Sleeping
134+
);
127135

128136
// Idle functions: these are functions which are like RSHUTDOWN -> RINIT
129-
create_sleeping_fn!(ddog_php_prof_frankenphp_handle_request, FRANKENPHP_HANDLE_REQUEST_HANDLER, State::Idle);
137+
create_sleeping_fn!(
138+
ddog_php_prof_frankenphp_handle_request,
139+
FRANKENPHP_HANDLE_REQUEST_HANDLER,
140+
State::Idle
141+
);
130142

131143
// Functions that are blocking on I/O
132-
create_sleeping_fn!(ddog_php_prof_stream_select, STREAM_SELECT_HANDLER, State::Select);
133-
create_sleeping_fn!(ddog_php_prof_socket_select, SOCKET_SELECT_HANDLER, State::Select);
134-
create_sleeping_fn!(ddog_php_prof_curl_multi_select, CURL_MULTI_SELECT_HANDLER, State::Select);
144+
create_sleeping_fn!(
145+
ddog_php_prof_stream_select,
146+
STREAM_SELECT_HANDLER,
147+
State::Select
148+
);
149+
create_sleeping_fn!(
150+
ddog_php_prof_socket_select,
151+
SOCKET_SELECT_HANDLER,
152+
State::Select
153+
);
154+
create_sleeping_fn!(
155+
ddog_php_prof_curl_multi_select,
156+
CURL_MULTI_SELECT_HANDLER,
157+
State::Select
158+
);
135159
create_sleeping_fn!(ddog_php_prof_uv_run, UV_RUN_HANDLER, State::Select);
136-
create_sleeping_fn!(ddog_php_prof_event_base_loop, EVENT_BASE_LOOP_HANDLER, State::Select);
137-
create_sleeping_fn!(ddog_php_prof_eventbase_loop, EVENTBASE_LOOP_HANDLER, State::Select);
138-
create_sleeping_fn!(ddog_php_prof_ev_loop_run, EV_LOOP_RUN_HANDLER, State::Select);
139-
create_sleeping_fn!(ddog_php_prof_parallel_events_poll, PARALLEL_EVENTS_POLL_HANDLER, State::Select);
160+
create_sleeping_fn!(
161+
ddog_php_prof_event_base_loop,
162+
EVENT_BASE_LOOP_HANDLER,
163+
State::Select
164+
);
165+
create_sleeping_fn!(
166+
ddog_php_prof_eventbase_loop,
167+
EVENTBASE_LOOP_HANDLER,
168+
State::Select
169+
);
170+
create_sleeping_fn!(
171+
ddog_php_prof_ev_loop_run,
172+
EV_LOOP_RUN_HANDLER,
173+
State::Select
174+
);
175+
create_sleeping_fn!(
176+
ddog_php_prof_parallel_events_poll,
177+
PARALLEL_EVENTS_POLL_HANDLER,
178+
State::Select
179+
);
140180

141181
/// Will be called by the ZendEngine on all errors happening. This is a PHP 8 API
142182
#[cfg(zend_error_observer)]

0 commit comments

Comments
 (0)