2019/10/11/ 0 码力 |
42 页 |
911.10 KB
| 2 年前 3 >>> classmates = ['Michael', 'Bob', 'Tracy']
>>> classmates
['Michael', 'Bob', 'Tracy']
变量 classmates 就是一个 list。用 len() 函数可以获得 list 元素的个数:
>>> classmates[0]
'Michael'
>>> classmates[1]
'Bob'
>>> classmates[2]
'Tracy'
>>> classmates[3]
Traceback (most recent call last):
File "", line len(classmates) - 1。
如果要取最后一个元素,除了计算索引位置外,还可以用-1做索引,直
接获取最后一个元素:
>>> classmates[-1]
'Tracy'
以此类推,可以获取倒数第 2 个、倒数第 3 个:
>>> classmates[-2]
'Bob'
>>> classmates[-3] 0 码力 |
531 页 |
5.15 MB
| 2 年前 5 presentations & Game Engine Architecture book
## PROFILING
- Many Profilers used in Game Development Tracy, Intel VTune, Microsoft PIX, Custom
• Need profiler with instrumentation
• Need to see whole process dependencies
Using VTune - best view for data building
Presentation about Tracy profiler from CppCon 2023
An Introduction to Tracy Profiler in C++ CppCon 2023
## TECHNIQUES
## KEEP THREADS BUSY
Keep threads 0 码力 |
99 页 |
2.40 MB
| 1 年前 3 high-level overview of the runtime's execution behavior.
The currently supported profilers are:
• Tracy
• Intel VTune (ITTAPI)
## Adding New Zones
To add new zones, use the JL_TIMING macro. You can find [Image](/uploads/documents/b/d/a/a/bdaac89e23dda6abe285d4efb4330c27/p1652_1.jpg)
Figure 103.1: Typical Tracy usage
## Dynamically Enabling and Disabling Zones
The JULIA_TIMING_SUBSYSTEMS environment variable zones.
## Tracy Profiler
Tracy is a flexible profiler that can be optionally integrated with Julia.
A typical Tracy session might look like this:
## Building Julia with Tracy
To enable Tracy integration 0 码力 |
1691 页 |
5.99 MB
| 2 年前 3 high-level overview of the runtime's execution behavior.
The currently supported profilers are:
• Tracy
• Intel VTune (ITTAPI)
## Adding New Zones
To add new zones, use the JL_TIMING macro. You can find [Image](/uploads/documents/a/4/f/2/a4f2005e0dfb38d804f8196a485e6d9d/p1643_1.jpg)
Figure 103.1: Typical Tracy usage
## Dynamically Enabling and Disabling Zones
The JULIA_TIMING_SUBSYSTEMS environment variable zones.
## Tracy Profiler
Tracy is a flexible profiler that can be optionally integrated with Julia.
A typical Tracy session might look like this:
## Building Julia with Tracy
To enable Tracy integration 0 码力 |
1681 页 |
5.96 MB
| 2 年前 3 high-level overview of the runtime's execution behavior.
The currently supported profilers are:
• Tracy
• Intel VTune (ITTAPI)
## Adding New Zones
To add new zones, use the JL_TIMING macro. You can find [Image](/uploads/documents/e/f/1/2/ef12927ce998483d8dfc68f9e753c307/p1644_1.jpg)
Figure 103.1: Typical Tracy usage
## Dynamically Enabling and Disabling Zones
The JULIA_TIMING_SUBSYSTEMS environment variable zones.
## Tracy Profiler
Tracy is a flexible profiler that can be optionally integrated with Julia.
A typical Tracy session might look like this:
## Building Julia with Tracy
To enable Tracy integration 0 码力 |
1682 页 |
5.96 MB
| 2 年前 3 high-level overview of the runtime's execution behavior.
The currently supported profilers are:
• Tracy
• Intel VTune (ITTAPI)
## Adding New Zones
To add new zones, use the JL_TIMING macro. You can find [Image](/uploads/documents/b/c/3/a/bc3aa5129c33d46def320dc96a6377f9/p1640_1.jpg)
Figure 103.1: Typical Tracy usage
## Dynamically Enabling and Disabling Zones
The JULIA_TIMING_SUBSYSTEMS environment variable zones.
## Tracy Profiler
Tracy is a flexible profiler that can be optionally integrated with Julia.
A typical Tracy session might look like this:
## Building Julia with Tracy
To enable Tracy integration 0 码力 |
1678 页 |
5.95 MB
| 2 年前 3 high-level overview of the runtime's execution behavior.
The currently supported profilers are:
• Tracy
• Intel VTune (ITTAPI)
## Adding New Zones
To add new zones, use the JL_TIMING macro. You can find [Image](/uploads/documents/9/e/4/6/9e46519d0fcf9c3ad4414741497d6a7f/p1654_1.jpg)
Figure 103.1: Typical Tracy usage
## Dynamically Enabling and Disabling Zones
The JULIA_TIMING_SUBSYSTEMS environment variable zones.
## Tracy Profiler
Tracy is a flexible profiler that can be optionally integrated with Julia.
A typical Tracy session might look like this:
## Building Julia with Tracy
To enable Tracy integration 0 码力 |
1693 页 |
6.33 MB
| 2 年前 3
|