Commit 8e033b1
authored
[SYCL][NFC] Avoid temporary object creation when do tracing (#20443)
Change tracing functions to avoid temporary `std::string_view` object
creation. The issue was that if a string literal is passed as a `Msg`
parameter, the temporary `std::string_view` object was created. When the
constructor of the `std::string_view` is called, internally it
calculates the length of the C-string. This PR avoids that.1 parent b8a3979 commit 8e033b1
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
| 332 | + | |
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
| |||
362 | 363 | | |
363 | 364 | | |
364 | 365 | | |
365 | | - | |
366 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
367 | 369 | | |
368 | 370 | | |
369 | 371 | | |
| |||
0 commit comments