Skip to content

Commit cd82e0c

Browse files
committed
Merge branch 'develop'
* develop: specify next release fix collisions between recorded events within the same second add missing text to download the graphs
2 parents 059393b + 7a9e1bb commit cd82e0c

File tree

8 files changed

+39
-20
lines changed

8 files changed

+39
-20
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 3.0.3 - 2023-05-01
4+
5+
### Fixed
6+
7+
- Missing text to display the link to download the graphs
8+
- Fixed possible collisions between recorded elements when executed within the same second
9+
310
## 3.0.2 - 2023-04-30
411

512
### Fixed

src/Format.php

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
declare(strict_types = 1);
3+
4+
namespace Innmind\Profiler;
5+
6+
use Innmind\TimeContinuum\Format as FormatInterface;
7+
8+
/**
9+
* @internal
10+
* @psalm-immutable
11+
*/
12+
final class Format implements FormatInterface
13+
{
14+
public function toString(): string
15+
{
16+
return 'Y-m-dTH:i:s.uP';
17+
}
18+
}

src/Profile/Section/AppGraph.php

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function render(): Node
5252
Attribute::of('href', 'data:image/svg+xml;base64,'.\base64_encode($this->svg->toString())),
5353
Attribute::of('download', 'app-graph.svg'),
5454
),
55+
Sequence::of(Text::of('Download')),
5556
),
5657
Text::of($this->svg->toString()),
5758
),

src/Profile/Section/Exception.php

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function render(): Node
5252
Attribute::of('href', 'data:image/svg+xml;base64,'.\base64_encode($this->svg->toString())),
5353
Attribute::of('download', 'stack-trace.svg'),
5454
),
55+
Sequence::of(Text::of('Download')),
5556
),
5657
Text::of($this->svg->toString()),
5758
),

src/Profiler/Mutation/Processes.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
namespace Innmind\Profiler\Profiler\Mutation;
55

6+
use Innmind\Profiler\Format;
67
use Innmind\Filesystem\{
78
Adapter,
89
Directory,
910
File\File,
1011
File\Content,
1112
};
12-
use Innmind\TimeContinuum\{
13-
Clock,
14-
Earth\Format\ISO8601,
15-
};
13+
use Innmind\TimeContinuum\Clock;
1614

1715
final class Processes
1816
{
@@ -37,7 +35,7 @@ public function record(Content $process): void
3735
/** @psalm-suppress ArgumentTypeCoercion */
3836
$this->storage->add($this->profile->add(
3937
Directory\Directory::named('processes')->add(File::named(
40-
$this->clock->now()->format(new ISO8601),
38+
$this->clock->now()->format(new Format),
4139
$process,
4240
)),
4341
));

src/Profiler/Mutation/Remote/Http.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
namespace Innmind\Profiler\Profiler\Mutation\Remote;
55

6+
use Innmind\Profiler\Format;
67
use Innmind\Filesystem\{
78
Adapter,
89
Directory,
910
File\File,
1011
File\Content,
1112
};
12-
use Innmind\TimeContinuum\{
13-
Clock,
14-
Earth\Format\ISO8601,
15-
};
13+
use Innmind\TimeContinuum\Clock;
1614

1715
final class Http
1816
{
@@ -52,7 +50,7 @@ private function record(Content $message): void
5250
/** @psalm-suppress ArgumentTypeCoercion */
5351
$this->storage->add($this->profile->add(
5452
Directory\Directory::named('remote-http')->add(File::named(
55-
$this->clock->now()->format(new ISO8601),
53+
$this->clock->now()->format(new Format),
5654
$message,
5755
)),
5856
));

src/Profiler/Mutation/Remote/Processes.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
namespace Innmind\Profiler\Profiler\Mutation\Remote;
55

6+
use Innmind\Profiler\Format;
67
use Innmind\Filesystem\{
78
Adapter,
89
Directory,
910
File\File,
1011
File\Content,
1112
};
12-
use Innmind\TimeContinuum\{
13-
Clock,
14-
Earth\Format\ISO8601,
15-
};
13+
use Innmind\TimeContinuum\Clock;
1614

1715
final class Processes
1816
{
@@ -37,7 +35,7 @@ public function record(Content $process): void
3735
/** @psalm-suppress ArgumentTypeCoercion */
3836
$this->storage->add($this->profile->add(
3937
Directory\Directory::named('remote-processes')->add(File::named(
40-
$this->clock->now()->format(new ISO8601),
38+
$this->clock->now()->format(new Format),
4139
$process,
4240
)),
4341
));

src/Profiler/Mutation/Remote/Sql.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33

44
namespace Innmind\Profiler\Profiler\Mutation\Remote;
55

6+
use Innmind\Profiler\Format;
67
use Innmind\Filesystem\{
78
Adapter,
89
Directory,
910
File\File,
1011
File\Content,
1112
};
12-
use Innmind\TimeContinuum\{
13-
Clock,
14-
Earth\Format\ISO8601,
15-
};
13+
use Innmind\TimeContinuum\Clock;
1614

1715
final class Sql
1816
{
@@ -37,7 +35,7 @@ public function record(Content $process): void
3735
/** @psalm-suppress ArgumentTypeCoercion */
3836
$this->storage->add($this->profile->add(
3937
Directory\Directory::named('remote-sql')->add(File::named(
40-
$this->clock->now()->format(new ISO8601),
38+
$this->clock->now()->format(new Format),
4139
$process,
4240
)),
4341
));

0 commit comments

Comments
 (0)