A Crash Course in Calendars, Dates, Time, and Time ZonesClocks Time Points Dates Time Zones4 Agenda Compile-Time Rational Numbers Durations Clocks Time Points Dates Time Zones5 Compile-Time Rational Numbers Defined 1>;9 Agenda Compile-Time Rational Numbers Durations Clocks Time Points Dates Time Zones10 Durations Interval between two points in time Represented by std::duration from 519 Agenda Compile-Time Rational Numbers Durations Clocks Time Points Dates Time Zones20 Clocks Several clocks available in : std::system_clock: wall clock time from system-wide 0 码力 | 43 页 | 551.60 KB | 6 月前3
C++20's 12 C++20’sCalendars and Time Zones in MSVC Miya Natsuhara ("MEE-yuh Not-soo-HAR-uh") Miya.Natsuhara@microsoft.com Software Engineer, Visual C++ LibrariesWelcome to CppCon 2021! Join IV: Leap Seconds • What are leap seconds? • How did we implement them in MSVC? • Part V: Time Zones • Overview of [time.zone] • IANA database challenges • Part VI: Conclusion7 Part I: Development time with respect to a not-yet- specified time zone • More to come on this when we get to time zones and related matters soon!24 clock_cast clock_cast allows you to convert a time_point for one clock 0 码力 | 55 页 | 8.67 MB | 6 月前3
Tracy: A Profiler You Don't Want to Miss... ZoneNamedN(cleanzone, “cleanup”, true); ... } • ZoneNamed[N|C] • have multiple zones in the same scope • each “zone identifier” must be unique in that scope • creates a zone stack, not have multiple names • will show up in statistics! • increased runtime cost to record zone Transient zones may be necessary when instrumenting a module that can be loaded and unloaded throughout the lifecycle manipulations, … file, network, logging, … interrupts, user input activity, spurious wake-ups, … 47 Color zones appropriately Tips & Tricks• Idling • Waits • Sleeps • Lock acquisition (contention) • Memory operations0 码力 | 84 页 | 8.70 MB | 6 月前3
Tracy: A Profiler You Don't Want to Miss... ZoneNamedN(cleanzone, “cleanup”, true); ... } • ZoneNamed[N|C] • have multiple zones in the same scope • each “zone identifier” must be unique in that scope • creates a zone stack, not have multiple names • will show up in statistics! • increased runtime cost to record zone Transient zones may be necessary when instrumenting a module that can be loaded and unloaded throughout the lifecycle manipulations, … file, network, logging, … interrupts, user input activity, spurious wake-ups, … 47 Color zones appropriately Tips & Tricks• Idling • Waits • Sleeps • Lock acquisition (contention) • Memory operations0 码力 | 85 页 | 6.51 MB | 6 月前3
2020: The Year of Sanitizers?@ciura_victor - 2020: The Year of Sanitizers? Shadow Mapping Process Memory Shadow Memory 👈 Red zones my allocated memory ➡ 🧪☣ Poisoned memory84 2020 Victor Ciura | @ciura_victor - 2020: The ShadowByte(p)89 2020 Victor Ciura | @ciura_victor - 2020: The Year of Sanitizers? Heap Red Zones alloc 1 alloc 2 alloc 3 alloc 4 alloc 5 alloc 1 alloc 2 alloc 3 alloc 4 alloc 5 malloc() ASAN ASAN malloc()90 2020 Victor Ciura | @ciura_victor - 2020: The Year of Sanitizers? Heap Red Zones alloc 1 alloc 2 alloc 3 alloc 4 alloc 5 ASAN malloc() alloc 1 alloc 2 alloc 3 alloc 4 alloc 5 Shadow0 码力 | 135 页 | 27.77 MB | 6 月前3
whats new in visual studioCode debugging Demo C++20 in action Thu, Oct 28 – 10:30am C++20’sCalendars and Time Zones in MSVC Miya Natsuhara – `Online _4 Tue, Oct 26 – 10:30am Documentation in The Era of Concepts WSL 2, and more – Sy Brand & Marian Luparu Thursday 28th • C++20’s Calendars and Time Zones in MSVC – Miya Natsuhara • An Editor Can Do That? Debugging Assembly Language and GPU Kernels in 0 码力 | 42 页 | 19.02 MB | 6 月前3
Finding Bugs using Path-Sensitive Static AnalysisWSL 2, and more – Sy Brand & Marian Luparu Thursday 28th • C++20’sCalendars and Time Zones in MSVC – Miya Natsuhara • An Editor Can Do That? Debugging Assembly Language and GPU Kernels in 0 码力 | 35 页 | 14.13 MB | 6 月前3
AnEditor Can Do That?WSL 2, and more – Sy Brand & Marian Luparu Thursday 28th • C++20’sCalendars and Time Zones in MSVC – Miya Natsuhara • An Editor Can Do That? Debugging Assembly Language and GPU Kernels in 0 码力 | 71 页 | 2.53 MB | 6 月前3
共 8 条
- 1













